Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / guicast / bcwindowevents.h
blob3bec2f4980ec5ac79f2bea6bc87b942e306ec590
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
32 // Local Variables:
33 // mode: C++
34 // c-file-style: "linux"
35 // End: