Why XPending always return 0 in subthread

Asked by JC

The X server connect and window creation are both done in main thread, then I issue a new thread and call XPending from it, but I got nothing, XNextEvent totally blocked ether, so does it mean I can't get event within other thread?

I've tried calling XInitThread at the beginning but it doesn't fix this.

I think it is totally valid to use multiple threads with X11 like this. Did I missed something?

Question information

Language:
English Edit question
Status:
Expired
For:
Compiz Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.