From: Vadim Zeitlin Date: Tue, 18 Dec 2001 20:40:25 +0000 (+0000) Subject: fix for the X fatal error when closing frames X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/48f72114ba60f991c0171ceb26dbab05b4317b33 fix for the X fatal error when closing frames git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 515d60b61e..499a36e689 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -146,7 +146,7 @@ gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventConfigure *WX if (g_isIdle) wxapp_install_idle_handler(); - if (!win->m_hasVMT) + if (!win->m_hasVMT || !win->IsShown()) return FALSE; int x = 0; diff --git a/src/gtk1/toplevel.cpp b/src/gtk1/toplevel.cpp index 515d60b61e..499a36e689 100644 --- a/src/gtk1/toplevel.cpp +++ b/src/gtk1/toplevel.cpp @@ -146,7 +146,7 @@ gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventConfigure *WX if (g_isIdle) wxapp_install_idle_handler(); - if (!win->m_hasVMT) + if (!win->m_hasVMT || !win->IsShown()) return FALSE; int x = 0;