]> git.saurik.com Git - wxWidgets.git/commitdiff
make sure button clicks etc. on a popup window don't lead to a dismissal because...
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 3 Jun 2013 08:30:33 +0000 (08:30 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 3 Jun 2013 08:30:33 +0000 (08:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/window_osx.cpp

index e8337f8c67ff7c07415976cce3239732a441c5c1..e1ce896e63642ca7672d59dc4419cebc5f3e9df8 100644 (file)
@@ -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);
         }
     }