X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1f14d226fceb8f77626a58bbddf7ace3b93d66c..51dc95a4c8ccb00741be48f6353749ada3e9f39a:/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 );