summaryrefslogtreecommitdiff
path: root/plugingui/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r--plugingui/window.cc8
1 files changed, 4 insertions, 4 deletions
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);