XGrabServer problem when opening a different display connection

pcpa at mandriva.com.br pcpa at mandriva.com.br
Sat May 10 18:59:05 PDT 2008


Quoting Peter Hutterer <peter at cs.unisa.edu.au>:

> 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?

  I noticed that also after sending the email... It works correctly
when calling XFlush() after XUngrabServer().

> 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

Paulo






More information about the xorg mailing list