X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab93a576f47003ad05b1378ead108474b65b611c..52b51c27916e54664d8246fd9cf2f1a741d6f4e4:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index e6b814f000..8a1f5c0cb9 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1692,11 +1692,10 @@ static gint gtk_window_focus_in_callback( GtkWidget *widget, printf( ".\n" ); */ - wxPanel *panel = wxDynamicCast(win->GetParent(), wxPanel); - if (panel) - { - panel->SetLastFocus(win); - } + // notify the parent keeping track of focus for the kbd navigation + // purposes that we got it + wxChildFocusEvent eventFocus(win); + (void)win->GetEventHandler()->ProcessEvent(eventFocus); #ifdef HAVE_XIM if (win->m_ic)