From 0c6f5c346dc55dafc7c741814fa42f6d1616435e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Oct 2014 17:31:03 +0000 Subject: [PATCH] Update mouse capture stack when showing modal dialog in wxGTK. GTKReleaseMouseAndNotify(), which is called before showing a modal dialog in wxGTK to ensure that the mouse does not remain captured by the window which will be disabled by the modal dialog soon, should update the mouse capture stack and so must call ReleaseMouse() to do it, not just DoReleaseMouse(). See #16647, #8657. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index f63565a8c5..81e9f04eee 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -4838,7 +4838,7 @@ void wxWindowGTK::DoReleaseMouse() void wxWindowGTK::GTKReleaseMouseAndNotify() { - DoReleaseMouse(); + ReleaseMouse(); wxMouseCaptureLostEvent evt(GetId()); evt.SetEventObject( this ); HandleWindowEvent( evt );