]> git.saurik.com Git - wxWidgets.git/commitdiff
Set wxFocusEvent's window value for wxEVT_KILL_FOCUS in wxGTK.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Oct 2011 16:19:52 +0000 (16:19 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Oct 2011 16:19:52 +0000 (16:19 +0000)
Note that it is still not set for wxEVT_SET_FOCUS, because it's not
immediately obvious how to obtain the previously focused window from
there. It's still better than always having the window NULL.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 1dc17b2f259e44ce7de67d9585d2a4e1a30e0a45..04b6e8a983ed07896daf3712b45fa728c17bfcfd 100644 (file)
@@ -3170,6 +3170,7 @@ void wxWindowGTK::GTKHandleFocusOutNoDeferring()
 
     wxFocusEvent event( wxEVT_KILL_FOCUS, GetId() );
     event.SetEventObject( this );
+    event.SetWindow( FindFocus() );
     GTKProcessEvent( event );
 }