[gtk+/client-side-windows: 9/284] Never set shapes on foreign windows



commit 346acdca541fb2e4aa6e65c1997cbfd28e4bbf11
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Dec 3 23:33:04 2008 +0100

    Never set shapes on foreign windows
---
 gdk/gdkwindow.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 0beba73..ea059c5 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -534,7 +534,9 @@ recompute_visible_regions_internal (GdkWindowObject *private,
       private->window_type != GDK_WINDOW_OFFSCREEN &&
       /* or for toplevels */
       private->parent != NULL &&
-      GDK_WINDOW_TYPE (private->parent) != GDK_WINDOW_ROOT
+      GDK_WINDOW_TYPE (private->parent) != GDK_WINDOW_ROOT &&
+      /* or for foreign windows */
+      GDK_WINDOW_TYPE (private) != GDK_WINDOW_FOREIGN
       )
     {
       GDK_WINDOW_IMPL_GET_IFACE (private->impl)->shape_combine_region ((GdkWindow *)private, private->clip_region, 0, 0);



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