summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-02 21:04:53 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-02 21:04:53 +0200
commit42d7b7245566fd6e598f7031638370808abc13af (patch)
tree7005332e82f16f156bbe4ef56e98239c239710db /plugingui
parent00b1d3d0e3f538b7819c61a147f109d7e0d8a59b (diff)
Fix missing win32 initial size when embedded in prent window - part 3.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/nativewindow_win32.cc3
1 files changed, 2 insertions, 1 deletions
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>();
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);
}
}