X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/73847506eb8117c8e116b69a9ae57a55c0c90901..92bbd64f7fc6d489fa7af1193feef7f3308da549:/src/gtk1/toplevel.cpp?ds=inline diff --git a/src/gtk1/toplevel.cpp b/src/gtk1/toplevel.cpp index ee320bc684..534759fca7 100644 --- a/src/gtk1/toplevel.cpp +++ b/src/gtk1/toplevel.cpp @@ -761,7 +761,8 @@ void wxTopLevelWindowGTK::OnInternalIdle() // set the focus if not done yet and if we can already do it if ( GTK_WIDGET_REALIZED(m_wxwindow) ) { - if ( g_delayedFocus && wxGetTopLevelParent(g_delayedFocus) == this ) + if ( g_delayedFocus && + wxGetTopLevelParent((wxWindow*)g_delayedFocus) == this ) { g_delayedFocus->SetFocus(); g_delayedFocus = NULL;