mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-26 12:58:37 +02:00
patch by jerry: fixed new event queue on Mac and Linu
This commit is contained in:
parent
608074c041
commit
18a3db6843
36 changed files with 135 additions and 76 deletions
|
@ -28,10 +28,12 @@
|
|||
# include <X11/Xlib.h>
|
||||
#endif
|
||||
|
||||
class IEventQueue;
|
||||
|
||||
//! Event queue buffer for X11
|
||||
class CXWindowsEventQueueBuffer : public IEventQueueBuffer {
|
||||
public:
|
||||
CXWindowsEventQueueBuffer(Display*, Window);
|
||||
CXWindowsEventQueueBuffer(Display*, Window, IEventQueue* events);
|
||||
virtual ~CXWindowsEventQueueBuffer();
|
||||
|
||||
// IEventQueueBuffer overrides
|
||||
|
@ -56,7 +58,8 @@ private:
|
|||
XEvent m_event;
|
||||
CEventList m_postedEvents;
|
||||
bool m_waiting;
|
||||
int m_pipefd[2];
|
||||
int m_pipefd[2];
|
||||
IEventQueue* m_events;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue