From: Stefan Csomor Date: Mon, 3 Jun 2013 08:30:33 +0000 (+0000) Subject: make sure button clicks etc. on a popup window don't lead to a dismissal because... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e80711dd54ac9b84b2aa4218ef0749fe60606af9?ds=sidebyside make sure button clicks etc. on a popup window don't lead to a dismissal because their GetWindow()/parent = popup check didn't work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index e8337f8c67..e1ce896e63 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -614,12 +614,14 @@ void wxWindowMac::OSXSimulateFocusEvents() { wxFocusEvent event( wxEVT_KILL_FOCUS, former->GetId()); event.SetEventObject(former); + event.SetWindow(this); former->HandleWindowEvent(event) ; } { wxFocusEvent event(wxEVT_SET_FOCUS, former->GetId()); event.SetEventObject(former); + event.SetWindow(this); former->HandleWindowEvent(event); } }