I&#39;ve tested with the latest xlib and xcb from git master.<div><br></div><div>These are the results I&#39;m getting.</div><div><br></div><div>Xcb: same results as described earlier</div><div><br></div><div>when using xlib with xcb backend:</div>
<div>XInithreads on or off makes no difference.</div><div>XSynchronized set to true makes things hang quite frequently but I do get events, setting it to false gives the same situation as xlib with xcb back-end.</div><div>
<br></div><div>I&#39;ll try to make a simple unit test (Java with C) that replicates this behavior if it would help squashing this bug?</div><div><br><br><div class="gmail_quote">On Mon, Apr 19, 2010 at 12:32 AM, Jamey Sharp <span dir="ltr">&lt;<a href="mailto:jamey@minilop.net">jamey@minilop.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Sun, Apr 18, 2010 at 1:31 PM, Erik De Rijcke &lt;<a href="mailto:derijcke.erik@gmail.com">derijcke.erik@gmail.com</a>&gt; wrote:<br>

&gt; I have a fairly large program with a small part accessing xcb. It basically<br>
&gt; does the following:<br>
&gt; thread A: open a display; spawn thread b; listen for events.<br>
&gt; thread B: set event mask (substructure redirect mask on root window)<br>
&gt; What seems to happen is that thread A never gets any configure request<br>
&gt; events nor map requests. However when I replicate this exact code with Xlib<br>
&gt; with build in xcb backend, thread A does receive events.<br>
&gt; I&#39;m guessing only the thread that sets the mask gets the events, is there a<br>
&gt; way to tell xcb to deliver the events to thread A or is this a possible bug?<br>
<br>
</div></div>I&#39;m guessing this is a bug I finally tracked down yesterday. :-)<br>
<br>
Can you re-test with current libxcb from git master?<br>
<br>
I&#39;m a little surprised you had success with current Xlib/XCB though. I<br>
have some fairly hefty patches I&#39;m testing right now (`ico -threads<br>
16` is running on another desktop) to squash several Xlib threading<br>
bugs. Have you noticed the Xlib version of your code dying sometimes<br>
with assertion failures, or hanging?<br>
<br>
Thanks,<br>
<font color="#888888">Jamey<br>
</font></blockquote></div><br></div>