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/window.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui/window.cc') diff --git a/plugingui/window.cc b/plugingui/window.cc index ab51008..e61b004 100644 --- a/plugingui/window.cc +++ b/plugingui/window.cc @@ -42,7 +42,7 @@ namespace GUI { -Window::Window() +Window::Window(void* native_window) : Widget(nullptr) , wpixbuf(100, 100) { @@ -52,13 +52,13 @@ Window::Window() #ifndef PUGL #ifdef X11 - native = new NativeWindowX11(*this); + native = new NativeWindowX11(native_window, *this); #endif/*X11*/ #ifdef WIN32 - native = new NativeWindowWin32(*this); + native = new NativeWindowWin32(native_window, *this); #endif/*WIN32*/ #else/*Use pugl*/ - native = new NativeWindowPugl(this); + native = new NativeWindowPugl(native_window, *this); #endif eventhandler = new EventHandler(*native, *this); -- cgit v1.2.3