Application hangs on xLib GetGeometry()

TMurray77 Source

I was just wondering why XGetGeometry() would cause a hang in an application. In the xlib book it says any of there Get* functions don't necessarily return immediately.

I tried using XFlush() and Xsync() before and after the XGetGeometry() function call. Also I tried using xlib's XGetWindowAttributes() instead of XGetGeometry().

Is there a way to make a it return immediately or other functions that will give me the same results?



comments powered by Disqus