From f9d2d48214038689dc42085373b28b934f7fe002 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 10 Feb 2017 19:16:33 +0100 Subject: Send both move and resize events if ConfigureNotify XEvent contain changes in both. --- plugingui/nativewindow_x11.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugingui/nativewindow_x11.h') 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 + #include #include @@ -58,7 +60,7 @@ public: std::queue> getEvents() override; private: - std::shared_ptr 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> event_queue; }; } // GUI:: -- cgit v1.2.3