MCPcopy Create free account
hub / github.com/deskflow/deskflow / XWindowsEventQueueBuffer

Method XWindowsEventQueueBuffer

src/lib/platform/XWindowsEventQueueBuffer.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21//
22
23XWindowsEventQueueBuffer::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
37XWindowsEventQueueBuffer::~XWindowsEventQueueBuffer()
38{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected