From 3ceb425a73db3c89d83b497df17dd68b28f2b28b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Jul 2020 15:14:45 +0200 Subject: [PATCH] Call OnDismiss() in wxMSW wxPopupTransientWindow on deactivation The window should be notified about its dismissal, as it happens in the result of the user action and not due to a call to Dismiss() from the program itself. --- src/msw/popupwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index c3f42860f9..0c42cd5aa9 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -195,7 +195,7 @@ void wxPopupTransientWindow::Dismiss() void wxPopupTransientWindow::DismissOnDeactivate() { // Hide the window automatically when it loses activation. - Dismiss(); + DismissAndNotify(); // Activation might have gone to a different window or maybe // even a different application, don't let our owner continue