From 6f8509f8eb4de57d7fd49e8f32df3e042a6b74c6 Mon Sep 17 00:00:00 2001 From: ali kettab Date: Thu, 9 Jul 2020 16:29:16 +0100 Subject: [PATCH] Revert 06ffd1d This reverts commit 06ffd1dbabcb0de47ea7ceecbbee7e3af697bf99. --- src/gtk/window.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 052c4bb984..b8f0fd9f0f 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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(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;