]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid permanently frozen TLW when frozen child is destroyed with GTK+ 2.18
authorPaul Cornett <paulcor@bullseye.com>
Mon, 5 Apr 2010 00:45:21 +0000 (00:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 5 Apr 2010 00:45:21 +0000 (00:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index e3fee8bcdf6352ab2d66b18be9e214fd48733153..91bf0a9e111e33a2a54fbd6474d717d08aa667f8 100644 (file)
@@ -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