From 9a237e2f12b18f75b2602052dedeee5650180a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 19 Oct 2011 16:19:52 +0000 Subject: [PATCH] Set wxFocusEvent's window value for wxEVT_KILL_FOCUS in wxGTK. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 1dc17b2f25..04b6e8a983 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3170,6 +3170,7 @@ void wxWindowGTK::GTKHandleFocusOutNoDeferring() wxFocusEvent event( wxEVT_KILL_FOCUS, GetId() ); event.SetEventObject( this ); + event.SetWindow( FindFocus() ); GTKProcessEvent( event ); }