[gtk+] Only apply clip_region shape for viewable windows
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Only apply clip_region shape for viewable windows
- Date: Sat, 18 Jul 2009 21:18:16 +0000 (UTC)
commit ed2c83757417a1ca19bb54f11b74c8fd93ef81c0
Author: Alexander Larsson <alexl redhat com>
Date: Sat Jul 18 21:51:11 2009 +0200
Only apply clip_region shape for viewable windows
This fixes a problem where the clip region is not yet calculated
gdk/gdkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index e62311e..7ee32c0 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1579,7 +1579,8 @@ gdk_window_ensure_native (GdkWindow *window)
/* 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);
+ if (private->viewable)
+ GDK_WINDOW_IMPL_GET_IFACE (private->impl)->shape_combine_region ((GdkWindow *)private, private->clip_region, 0, 0);
reparent_to_impl (private);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]