XGrabServer problem when opening a different display connection
Peter Hutterer
peter at cs.unisa.edu.au
Sat May 10 17:44:30 PDT 2008
On Sat, May 10, 2008 at 11:56:32AM -0300, pcpa at mandriva.com.br wrote:
> This is kinda weird, but shows how to cause a "dead lock" after
> issuing a XGrabServer/XUngrabServer.
>
> In the attached program, if using a smaller value to j (like 100)
> it will work correctly, otherwise, when trying to open a new
> Display connection, it will lock in the authorization code because
> the server will not return any data.
Did you try putting an XFlush() in after UngrabServer?
As it is now, if the UngrabServer request is buffered in Xlib, you still hold
the server grab when you open a new connection.
Cheers,
Peter
More information about the xorg
mailing list