00001 #ifndef BCWINDOWEVENTS_H 00002 #define BCWINDOWEVENTS_H 00003 00004 // Thread running parallel to run_window which listens for X server events 00005 // only. Hopefully, having it as the only thing calling the X server without 00006 // locks won't crash. Previously, events were dispatched from BC_Repeater 00007 // asynchronous to the events recieved by XNextEvent. BC_Repeater tended to 00008 // lock up for no reason. 00009 00010 00011 #include "bcwindowbase.inc" 00012 #include "thread.h" 00013 00014 00015 00016 class BC_WindowEvents : public Thread 00017 { 00018 public: 00019 BC_WindowEvents(BC_WindowBase *window); 00020 ~BC_WindowEvents(); 00021 void start(); 00022 void run(); 00023 BC_WindowBase *window; 00024 int done; 00025 }; 00026 00027 00028 00029 00030 #endif
1.5.5