X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1f14d226fceb8f77626a58bbddf7ace3b93d66c..8fbdfa4faf61ecc4177d9952d3f3718cf4514ae6:/src/gtk/toplevel.cpp diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 0f65290104..515d60b61e 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -497,6 +497,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent, wxTopLevelWindowGTK::~wxTopLevelWindowGTK() { m_isBeingDeleted = TRUE; + + gtk_window_set_focus( GTK_WINDOW(m_widget), NULL ); wxTopLevelWindows.DeleteObject( this );