I can confirm this gets stuck as well on my OpenSuSE 12.1 machine.

The libX11 code contains following comment just above the pthread_cond_wait it 
is stuck on:

/* If some thread is already waiting for events,
 * it will get the first one. That thread must
 * process that event before we can continue. */
/* FIXME: That event might be after this reply,
 * and might never even come--or there might be
 * multiple threads trying to get events. */

Fedora 13 uses older libX11 that doesn't contain this bug yet.

In upstream, this was fixed by commit 
fd85aca7a616c595fc17b2520f84316a11e8906f. I can confirm your application 
doesn't get stuck on my machine with upstream Xorg build.

Michal Srb
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to