[XFree86] How to release XNextEvent ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I have a multithreaded application. I initialized X-Window with XInitThreads. One thread is running the main program and another one is waiting for X-events. However, some events, external to X-window ones, may, for instance, close the application. Then, I wan't to clear all threads, close X-window connection, etc ... Thus, I tried to use XSendEvent from the main thread to release the XNextEvent that is waiting the X events in the other thread. However, it seems that the event does not release XNextEvent although it appears in the queue as soon as a real event (i.e. comming from the mouse or the keyboard) occurs.


How can I release XNextEvent without asking the user to move the mouse or press a key ?

Friendly
   Damien Touraine

_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux