From 48f72114ba60f991c0171ceb26dbab05b4317b33 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Dec 2001 20:40:25 +0000 Subject: [PATCH] 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 --- src/gtk/toplevel.cpp | 2 +- src/gtk1/toplevel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.45.2