diff options
Diffstat (limited to 'plugintest.cc')
-rw-r--r-- | plugintest.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugintest.cc b/plugintest.cc index cbe34fe..b485400 100644 --- a/plugintest.cc +++ b/plugintest.cc @@ -248,8 +248,10 @@ LRESULT CALLBACK PluginTest::wndProc(HWND hwnd, UINT iMsg, } #endif // defined(WIN32) -void PluginTest::createWindow(void *parent) +void* PluginTest::createWindow(void *parent) { + void* window = nullptr; + #if defined(X11) xDisplay = XOpenDisplay(nullptr); @@ -261,6 +263,8 @@ void PluginTest::createWindow(void *parent) XSelectInput(xDisplay, xWindow, ExposureMask | KeyPressMask | PointerMotionMask); + + window = (void*)xWindow; #endif // defined(X11) #if defined(WIN32) @@ -292,10 +296,14 @@ void PluginTest::createWindow(void *parent) SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)this); + window = (void*)hwnd; + #endif // defined(WIN32) resizeWindow(100, 100); onShowWindow(); + + return window; } void PluginTest::onDestroyWindow() |