diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-10 18:39:27 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-10 18:39:27 +0100 |
commit | 09e923d965a86a944dad7d77b336721386f6bf63 (patch) | |
tree | 1000abf99b16bb6d70d8d88f1cd26096b634b027 /plugingui/nativewindow_x11.h | |
parent | 53fa1c76c27726670f2724793d867d817c029709 (diff) |
Return a list of events form native window instead of one event at a time.
Diffstat (limited to 'plugingui/nativewindow_x11.h')
-rw-r--r-- | plugingui/nativewindow_x11.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugingui/nativewindow_x11.h b/plugingui/nativewindow_x11.h index 10c2026..abc8af0 100644 --- a/plugingui/nativewindow_x11.h +++ b/plugingui/nativewindow_x11.h @@ -55,12 +55,10 @@ public: void handleBuffer() override; void redraw() override; void grabMouse(bool grab) override; - bool hasEvent() override; - std::shared_ptr<Event> getNextEvent() override; - std::shared_ptr<Event> peekNextEvent() override; + std::queue<std::shared_ptr<Event>> getEvents() override; private: - std::shared_ptr<Event> translateXMessage(XEvent& xevent, bool peek = false); + std::shared_ptr<Event> translateXMessage(XEvent& xevent); //! Allocate new shared memory buffer for the pixel buffer. //! Frees the existing buffer if there is one. |