Hi,<br>I'm Luca from Savona, Italy.<br>I'm using Compiz and I'm writing an application with Xlib to draw two windows, <br>let's say window_A and window_B. I would like to keep fixed the relative position <br>



between two established corners of them that they have when mapped.<br>So that if I move or resize one of the window, the other if necessary automatically <br>moves to observe the condition. I'm close with this code, let's see for example<br>



the case for window A:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">XSelectInput ( display, RootWindow ( display, 0 ), SubstructureNotifyMask );<br>



<br>XEvent event;<br>while ( true )<br>{<br>    XNextEvent ( display, & event );<br>     /* ... */<br>    if ( event.type == ConfigureNotify and event.xconfigure.window == window_B )<br>    {<br>        // new_x, new_y based on event.xconfigure.x, event.xconfigure.y, etc...<br>



        XMoveWindow ( display, window_A, new_x, new_y ); <br>    }<br>    /* ... */<br>}<br></blockquote><br>The problem is that the move correction of a window is only applied at the end of the move/resize <br>operation of the other and not continuously during it. <br>



Is there a way to obtain this as if the two windows could behave like one rigid body?<br>Thank you in advance,<br><br>Luca