diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 412702ef29..b8f0fd9f0f 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -4583,6 +4583,10 @@ void wxWindowGTK::SetFocus() if (gs_currentFocus != this) gs_pendingFocus = this; + wxWindow* tlw = wxGetTopLevelParent(static_cast(this)); + if (tlw && tlw->m_widget && !gtk_window_is_active(GTK_WINDOW(tlw->m_widget))) + tlw->Raise(); + GtkWidget *widget = m_wxwindow ? m_wxwindow : m_focusWidget; if ( GTK_IS_CONTAINER(widget) &&