From c6ac78a61edd08ccfd0f1e5b37ee48ceb7bfa474 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 17 Nov 2001 17:14:40 +0000 Subject: [PATCH] Trying to fix dialog close/focus_widget problem. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/toplevel.cpp | 2 ++ src/gtk1/toplevel.cpp | 2 ++ 2 files changed, 4 insertions(+) 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 ); 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 ); -- 2.45.2