This reverts commit 06ffd1dbab.
This commit is contained in:
ali kettab
2020-07-09 16:29:16 +01:00
parent 099ea7176d
commit 6f8509f8eb

View File

@@ -4583,13 +4583,9 @@ void wxWindowGTK::SetFocus()
if (gs_currentFocus != this)
gs_pendingFocus = this;
// We can't do this under GTK 2 as it breaks the GUI tests suite, but GTK 3
// tests are robust enough to pass even if we do this.
#ifdef __WXGTK3__
wxWindow* tlw = wxGetTopLevelParent(static_cast<wxWindow*>(this));
if (tlw && tlw->m_widget && !gtk_window_is_active(GTK_WINDOW(tlw->m_widget)))
tlw->Raise();
#endif // __WXGTK3__
GtkWidget *widget = m_wxwindow ? m_wxwindow : m_focusWidget;