Re: XMoveWindow()

2010-03-04 Thread Nadav Har'El
On Thu, Mar 04, 2010, Oleg Goldshmidt wrote about "Re: XMoveWindow()": > > i have two displays i want one to be a copy of the other, so when i move a > > window on one display, i want it to move to the same position in the other. >... > If you want to allow different WM

Re: XMoveWindow()

2010-03-04 Thread Shachar Shemesh
s to me that you are trying to move the wrong window. Why not run XMoveWindow not on the window you opened, but walk up the parents until you reach the window whose parent is root, and move that one? if i put the parent at x,y -> it will place it at x,y. but that not what i want

Re: XMoveWindow()

2010-03-04 Thread Erez D
's question, which was - why is this >> something for the program to do? >> >> i have two displays i want one to be a copy of the other, so when i > move a window on one display, i want it to move to the same position in the > other. > > Then it seems to me that y

Re: XMoveWindow()

2010-03-04 Thread Shachar Shemesh
a copy of the other, so when i move a window on one display, i want it to move to the same position in the other. Then it seems to me that you are trying to move the wrong window. Why not run XMoveWindow not on the window you opened, but walk up the parents until you reach the window whose pare

Re: XMoveWindow()

2010-03-04 Thread Erez D
well, thanks all for responding. i didn't want to start a debate, just a "get the border size with _NET_FRAME_EXTENTS prop, and adjust" would have been nice. thanks anyway, erez. On Thu, Mar 4, 2010 at 10:53 AM, Oleg Goldshmidt wrote: > 2010/3/4 Erez D : > > > i have two displays i want one to

Re: XMoveWindow()

2010-03-04 Thread Oleg Goldshmidt
2010/3/4 Erez D : > i have two displays i want one to be a copy of the other, so when i move a > window on one display, i want it to move to the same position in the other. DIsclaimer: I don't know Xlib programming well enough to go into technicalities. >From the common sense point of view, howe

Re: XMoveWindow()

2010-03-03 Thread Erez D
so when i move a window on one display, i want it to move to the same position in the other. > i woudld expext the folowing line: > XTranslateCoordinates(...,win,root,0,0, &x, &y, ...) ; XMoveWIndow(win,x,y) > to do nothing. > > Then you would be wrong. The "x, y&quo

Re: XMoveWindow()

2010-03-03 Thread Shachar Shemesh
ent. Yes, but that's avoiding Nadav's question, which was - why is this something for the program to do? i woudld expext the folowing line: XTranslateCoordinates(...,win,root,0,0, &x, &y, ...) ; XMoveWIndow(win,x,y) to do nothing. Then you would be wrong. The "x, y&qu

Re: XMoveWindow()

2010-03-03 Thread Erez D
On Wed, Mar 3, 2010 at 2:18 PM, Nadav Har'El wrote: > On Wed, Mar 03, 2010, Erez D wrote about "Re: XMoveWindow()": > > > when i move the window to pos(x,y) using XMoveWindow(), it moves but > > > positions the WM's window (e.g. the titlebar toplef

Re: XMoveWindow()

2010-03-03 Thread Nadav Har'El
On Wed, Mar 03, 2010, Erez D wrote about "Re: XMoveWindow()": > > 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. What you're doing is the right

Re: XMoveWindow()

2010-03-03 Thread Erez D
On Wed, Mar 3, 2010 at 11:42 AM, Shachar Shemesh wrote: > 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(),

Re: XMoveWindow()

2010-03-03 Thread Shachar Shemesh
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

XMoveWindow()

2010-03-03 Thread Erez D
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