<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Mar 3, 2010 at 5:05 PM, Shachar Shemesh <span dir="ltr"><<a href="mailto:shachar@shemesh.biz">shachar@shemesh.biz</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;">
<div dir="ltr" bgcolor="#ffffff" text="#000000"><div class="im">
Erez D wrote:<br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<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>
</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>
</div>
</div>
</div>
</blockquote></div>
Yes, but that's avoiding Nadav's question, which was - why is this
something for the program to do?<div class="im"><br></div></div></blockquote><div>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. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr" bgcolor="#ffffff" text="#000000"><div class="im">
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div>i woudld expext the folowing line:<br>
XTranslateCoordinates(...,win,root,0,0, &x, &y, ...) ;
XMoveWIndow(win,x,y)<br>
to do nothing.<br>
</div>
</div>
</div>
</blockquote></div>
Then you would be wrong. The "x, y" are supposed to be relative to the
coordinate system in which the window reside. Even without the window
manager override, the above command would not work with reparented
windows.<div class="im"><br></div></div></blockquote><div>yes it will.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr" bgcolor="#ffffff" text="#000000">
<div class="im">
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div><br>
however, it does move the window, by the size of the titlebar ...<br>
</div>
</div>
</div>
</blockquote></div>
Yes, because the route you use is unsupported in a WM environment. Deal
with it.<br>
<br></div></blockquote><div>i'll probably have to <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr" bgcolor="#ffffff" text="#000000">
Again, answer Nadav's question.<br><font color="#888888">
<br></font></div></blockquote><div><br>why are you so angry ? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr" bgcolor="#ffffff" text="#000000">
<font color="#888888">
Shachar</font><div class="im"><br>
<pre cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a href="http://www.lingnu.com" target="_blank">http://www.lingnu.com</a>
</pre>
</div></div>
</blockquote></div><br></div>