Quoting Peter Hutterer <peter@xxxxxxxxxxxxxxx>: > On Sat, May 10, 2008 at 11:56:32AM -0300, pcpa@xxxxxxxxxxxxxxx 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 _______________________________________________ xorg mailing list xorg@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/xorg