From 2f55b88cb00cdf1e47a7b1745f056882b016f74f Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 5 Apr 2010 00:45:21 +0000 Subject: [PATCH] avoid permanently frozen TLW when frozen child is destroyed with GTK+ 2.18 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index e3fee8b..91bf0a9 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2210,6 +2210,12 @@ wxWindowGTK::~wxWindowGTK() // delete before the widgets to avoid a crash on solaris delete m_imData; + // avoid problem with GTK+ 2.18 where a frozen window causes the whole + // TLW to be frozen, and if the window is then destroyed, nothing ever + // gets painted again + if (IsFrozen()) + DoThaw(); + if (m_widget) { // Note that gtk_widget_destroy() does not destroy the widget, it just -- 2.7.4