| 21 | // |
| 22 | |
| 23 | XWindowsEventQueueBuffer::XWindowsEventQueueBuffer(Display *display, Window window, IEventQueue *events) |
| 24 | : m_display(display), |
| 25 | m_window(window), |
| 26 | m_events(events) |
| 27 | { |
| 28 | assert(m_display != nullptr); |
| 29 | assert(m_window != None); |
| 30 | |
| 31 | m_userEvent = XInternAtom(m_display, "DESKFLOW_USER_EVENT", False); |
| 32 | // set up for pipe hack |
| 33 | int result = pipe2(m_pipefd, O_NONBLOCK); |
| 34 | assert(result == 0); |
| 35 | } |
| 36 | |
| 37 | XWindowsEventQueueBuffer::~XWindowsEventQueueBuffer() |
| 38 | { |
nothing calls this directly
no outgoing calls
no test coverage detected