diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-10 19:16:33 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-10 19:16:33 +0100 |
commit | f9d2d48214038689dc42085373b28b934f7fe002 (patch) | |
tree | a6480558c859fdccad9c4defb189498ecd7d3e67 /plugingui/nativewindow_x11.h | |
parent | 736a8f29c9bcf2cbd2d36c4fd229520974750cd8 (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.h | 6 |
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:: |