summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_x11.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/nativewindow_x11.h')
-rw-r--r--plugingui/nativewindow_x11.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugingui/nativewindow_x11.h b/plugingui/nativewindow_x11.h
index abc8af0..b2021c0 100644
--- a/plugingui/nativewindow_x11.h
+++ b/plugingui/nativewindow_x11.h
@@ -26,6 +26,8 @@
*/
#pragma once
+#include <queue>
+
#include <X11/Xlib.h>
#include <X11/extensions/XShm.h>
@@ -58,7 +60,7 @@ public:
std::queue<std::shared_ptr<Event>> getEvents() override;
private:
- std::shared_ptr<Event> translateXMessage(XEvent& xevent);
+ void translateXMessage(XEvent& xevent);
//! Allocate new shared memory buffer for the pixel buffer.
//! Frees the existing buffer if there is one.
@@ -85,6 +87,8 @@ private:
int depth{0};
Visual* visual{nullptr};
Atom wmDeleteMessage{0};
+
+ std::queue<std::shared_ptr<Event>> event_queue;
};
} // GUI::