From 42d7b7245566fd6e598f7031638370808abc13af Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 2 Apr 2017 21:04:53 +0200 Subject: Fix missing win32 initial size when embedded in prent window - part 3. --- plugingui/nativewindow_win32.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index ee16fb9..d897c25 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -381,7 +381,8 @@ NativeWindowWin32::NativeWindowWin32(void* native_window, Window& window) auto resizeEvent = std::make_shared(); resizeEvent->width = rect.right - rect.left; resizeEvent->height = rect.bottom - rect.top; - event_queue.push_back(resizeEvent); + //event_queue.push_back(resizeEvent); + window.resized(resizeEvent->width, resizeEvent->height); } } -- cgit v1.2.3