capturing windows from multiple threads

Dmitry Teslenko dteslenko at
Mon Apr 26 06:19:54 PDT 2010

I writing yet another window switcher program and
I'm trying to investigate feasability of this design:
* several threads capturing window previews with XGetImage
* gui thread shows these previews to user

Xlib docs state that in multithreaded app XInitThreads should be called
first or programmer should protect all Xlib calls with thread-sync
facitilites. Does it mean I have no ability to prefrom Xlib calls from
threads at same time?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

More information about the xorg mailing list