X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1f14d226fceb8f77626a58bbddf7ace3b93d66c..2c18f21dc7d5aedd7100b02f7a721551b73c537b:/src/gtk1/toplevel.cpp diff --git a/src/gtk1/toplevel.cpp b/src/gtk1/toplevel.cpp index 0f65290104..515d60b61e 100644 --- a/src/gtk1/toplevel.cpp +++ b/src/gtk1/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 );