changeset 5579:fbf244020834

RT-33266 Gtk: stage.setIconified(true) crashes compiz in Ubuntu 13.04 (Unity)
author Alexander Zvegintsev
date Wed, 30 Oct 2013 12:51:48 +0400
parents 82c5dba3721a
children 0e86f96331d5
files modules/graphics/src/main/native-glass/gtk/glass_window.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/gtk/glass_window.cpp	Wed Oct 30 12:15:06 2013 +0400
+++ b/modules/graphics/src/main/native-glass/gtk/glass_window.cpp	Wed Oct 30 12:51:48 2013 +0400
@@ -1257,6 +1257,10 @@
 void WindowContextTop::set_minimized(bool minimize) {
     is_iconified = minimize;
     if (minimize) {
+        if (frame_type == TRANSPARENT) {
+            // https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1245571
+            gdk_window_input_shape_combine_mask(gdk_window, NULL, 0, 0);
+        }
         gtk_window_iconify(GTK_WINDOW(gtk_widget));
     } else {
         gtk_window_deiconify(GTK_WINDOW(gtk_widget));