[gtk+] Don't read non-initialized clip region
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Don't read non-initialized clip region
- Date: Sat, 18 Jul 2009 21:18:26 +0000 (UTC)
commit 7adf894a29d87ba85f0d27f71e2480caf53dae79
Author: Alexander Larsson <alexl redhat com>
Date: Sat Jul 18 21:55:17 2009 +0200
Don't read non-initialized clip region
The clip region is only initialized (and needed) for viewable windows.
gdk/gdkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 35416b4..10fc70a 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -7269,7 +7269,7 @@ gdk_window_shape_combine_region (GdkWindow *window,
gdk_region_destroy (private->shape);
old_region = NULL;
- if (GDK_WINDOW_IS_MAPPED (window))
+ if (private->viewable)
old_region = gdk_region_copy (private->clip_region);
if (shape_region)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]