summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_x11.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 19:16:33 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 19:16:33 +0100
commitf9d2d48214038689dc42085373b28b934f7fe002 (patch)
treea6480558c859fdccad9c4defb189498ecd7d3e67 /plugingui/nativewindow_x11.h
parent736a8f29c9bcf2cbd2d36c4fd229520974750cd8 (diff)
Send both move and resize events if ConfigureNotify XEvent contain changes in both.
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::