<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Mar 3, 2010 at 2:18 PM, Nadav Har'El <span dir="ltr"><<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Mar 03, 2010, Erez D wrote about "Re: XMoveWindow()":<br>
<div class="im">> > when i move the window to pos(x,y) using XMoveWindow(), it moves but<br>
> > positions the WM's window (e.g. the titlebar topleft) at (x,y) instead of<br>
> > my window.<br>
<br>
</div>What you're doing is the right thing. XMoveWindow() doesn't actually do<br>
anything, it just sends a ConfigureRequest event to the parent, namely the<br>
window manager, which actually does the move, but this is how it's supposed<br>
to be.<br>
<br>
Can you explain why what you're seeing is a bad thing? E.g., when a user does<br>
"xterm -geometry +0+0", he usually would like the new window *including*<br>
whatever titlebar it has to start on the top-left corner. I don't see any<br>
reason why the coordinates you give should not include the titlebar...<br>
<div class="im"><br>
> I care about the position and size of the client area, not the gross window.<br>
> Now it depends on which wm i use, or if i use one at all.<br>
<br>
</div>Who is "I" here? An ordinary user doesn't even know that there is "the client<br>
area" and the "gross winodw" - all he sees is one square and wants to control<br>
its location; If he chooses location +0+0 (top-left corner), he probably wants<br>
the top-left of the titlebar to be there, not the "client area" (which would<br>
mean that the titlebar would be outside the visible area of the screen).<br>
<br>
If "I" is some computer program who wants to play tricks with window locations,<br>
then please don't. Window location is for the user to control, not automatic<br>
programs. I *HATE* it when programs thinks they know me and automatically<br>
start in, say, the bottom left corner of the screen. This could be an<br>
option (traditionally, -geometry) but should not be automatic - if anybody<br>
should automate the window placement it should be the window manager, not<br>
individual applications.<br>
<font color="#888888"><br>
<br></font></blockquote><div>when i write a program, i expect to get the same behaviour which doesn't depend on the WM.<br>however: Traditional window managers reparent the window, and add the titlebar to the parent.<br>
compize on the other hand doesn't reparent the window, so the behaviour is different.<br><br>i woudld expext the folowing line:<br>XTranslateCoordinates(...,win,root,0,0, &x, &y, ...) ; XMoveWIndow(win,x,y)<br>
to do nothing.<br><br>however, it does move the window, by the size of the titlebar ...<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888">
--<br>
Nadav Har'El | Wednesday, Mar 3 2010, 17 Adar 5770<br>
<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a> |-----------------------------------------<br>
Phone +972-523-790466, ICQ 13349191 |Someone offered you a cute little quote<br>
<a href="http://nadav.harel.org.il" target="_blank">http://nadav.harel.org.il</a> |for your signature? JUST SAY NO!<br>
</font></blockquote></div><br></div>