r956: README.BUILD - add more library recommendations
[cinelerra_cv/ct.git] / guicast / bcwindowevents.h
blobcb7bb5ac1f442536c6d5c51ee0059a930f6e5e38
1 #ifndef BCWINDOWEVENTS_H
2 #define BCWINDOWEVENTS_H
4 // Thread running parallel to run_window which listens for X server events
5 // only. Hopefully, having it as the only thing calling the X server without
6 // locks won't crash. Previously, events were dispatched from BC_Repeater
7 // asynchronous to the events recieved by XNextEvent. BC_Repeater tended to
8 // lock up for no reason.
11 #include "bcwindowbase.inc"
12 #include "thread.h"
16 class BC_WindowEvents : public Thread
18 public:
19 BC_WindowEvents(BC_WindowBase *window);
20 ~BC_WindowEvents();
21 void start();
22 void run();
23 BC_WindowBase *window;
24 int done;
30 #endif