From b9773f6eecea38e6a5aa28745cc6fe79aa2d441f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 12 Mar 2016 10:54:52 +0100 Subject: Add parent widget pointer for contained plugin windows. Remove threaded event handling and make all event handling depend on processEcvents being called with a regular (~50ms) interval. --- plugingui/nativewindow_pugl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugingui/nativewindow_pugl.h') diff --git a/plugingui/nativewindow_pugl.h b/plugingui/nativewindow_pugl.h index 2c9fbc7..13ca1e7 100644 --- a/plugingui/nativewindow_pugl.h +++ b/plugingui/nativewindow_pugl.h @@ -38,7 +38,7 @@ class Window; class NativeWindowPugl : public NativeWindow { public: - NativeWindowPugl(Window *window); + NativeWindowPugl(void* native_window, Window& window); ~NativeWindowPugl(); void init(); @@ -57,7 +57,8 @@ public: Event *peekNextEvent(); private: - Window* window{nullptr}; + Window& window; + void* native_window{nullptr}; PuglView* view{nullptr}; std::list eventq; -- cgit v1.2.3