XMoveWindow()

XMoveWindow()

Shachar Shemesh shachar at shemesh.biz
Wed Mar 3 11:42:18 IST 2010


Erez D wrote:
> hi
>
> i have an Xlib app.
>
>
> i created a window. the window manager has reparented to add a frame 
> and titlebar to it.
>
> when i move the window to pos(x,y) using XMoveWindow(), it moves but 
> positions the WM's window (e.g. the titlebar topleft)  at (x,y) 
> instead of my window.
>
> i tryied using _NET_MOVERESIZE_WINDOW instead. but can't seem to make 
> it work, it may be not supported under the window manager.
>
> any idea ?
A window manager is not just another X application. It gets early 
notifications + veto power over many window operations that take place. 
Yes, window movement is one of them.

If you think about it, it makes sense. Had that not been the case, your 
"move window" would move your window in relation to the WM's decoration 
window, rather than in relation to the screen coordinates (as you 
probably meant).

Since the move window operation is actually performed by the window 
manager, it is also the one you should turn to in case it does not do 
what you expect it to.

So, which WM are you trying this under?

Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100303/f084f5fc/attachment.html>


More information about the Linux-il mailing list