From 244d7da93e252e5d84250a732cbf935e48ab7592 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 18 Apr 2017 16:20:38 +0200 Subject: Do not destroy win32 windows when they are closed by the cross. --- plugingui/nativewindow_win32.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index f2387c7..5214ef0 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -73,7 +73,7 @@ LRESULT CALLBACK NativeWindowWin32::dialogProc(HWND hwnd, UINT msg, auto closeEvent = std::make_shared(); native->event_queue.push_back(closeEvent); } - break; + return 0; // Do not call DefWindowProc for this event. // HWND child, old; // old = 0; -- cgit v1.2.3