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); } }