[gtk+/client-side-windows: 92/284] Always set the shape when creating a native window.



commit ef3d1893b68be32e2ab7f34ae8d038ea20a6d96c
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Jan 19 16:49:34 2009 +0100

    Always set the shape when creating a native window.
    
    This is not always done by recompute_visible_regions, as
    the clip region doesn't change.
---
 gdk/gdkwindow.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 416b7dd..041db2f 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1259,6 +1259,10 @@ gdk_window_set_has_native (GdkWindow *window, gboolean has_native)
 
       recompute_visible_regions (private, FALSE, FALSE);
 
+      /* The shape may not have been set, as the clip region doesn't actually
+	 change, so do it here manually */
+      GDK_WINDOW_IMPL_GET_IFACE (private->impl)->shape_combine_region ((GdkWindow *)private, private->clip_region, 0, 0);
+
       reparent_to_impl (private);
 
       GDK_WINDOW_IMPL_GET_IFACE (private->impl)->set_background (window, &private->bg_color);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]