diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-10-28 17:55:06 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-10-28 17:55:06 +0200 |
commit | 05b3e8cdc7f6cf7056c96d9cd150a0e2a8fb85a4 (patch) | |
tree | 19c2723984cef60a8000812dc4fb5176dcba42d0 /plugingui/nativewindow_x11.h | |
parent | e19d48332a7bc8963bc0a58d746a75dc15eeb58c (diff) |
Rewrite event handler to use shared_ptr Events instead of raw pointers.
Diffstat (limited to 'plugingui/nativewindow_x11.h')
-rw-r--r-- | plugingui/nativewindow_x11.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/nativewindow_x11.h b/plugingui/nativewindow_x11.h index 2d99556..50cd904 100644 --- a/plugingui/nativewindow_x11.h +++ b/plugingui/nativewindow_x11.h @@ -49,11 +49,11 @@ public: void redraw() override; void grabMouse(bool grab) override; bool hasEvent() override; - Event* getNextEvent() override; - Event* peekNextEvent() override; + std::shared_ptr<Event> getNextEvent() override; + std::shared_ptr<Event> peekNextEvent() override; private: - Event* translateXMessage(XEvent& xevent, bool peek = false); + std::shared_ptr<Event> translateXMessage(XEvent& xevent, bool peek = false); XImage* createImageFromBuffer(unsigned char* buf, int width, int height); ::Window xwindow{0}; |