[gtk+] Check for viewable to avoid doing work instead of mapped
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Check for viewable to avoid doing work instead of mapped
- Date: Sat, 18 Jul 2009 21:18:06 +0000 (UTC)
commit 027f411150b313082c4bb729ed242d561c98782f
Author: Alexander Larsson <alexl redhat com>
Date: Sat Jul 18 20:37:19 2009 +0200
Check for viewable to avoid doing work instead of mapped
This is now cheap and allows us to avoid more work.
gdk/gdkwindow.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index c8778c3..2ef379a 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -4971,7 +4971,7 @@ gdk_window_invalidate_rect (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
- if (private->input_only || !GDK_WINDOW_IS_MAPPED (window))
+ if (private->input_only || !private->viewable)
return;
if (!rect)
@@ -5056,7 +5056,7 @@ gdk_window_invalidate_maybe_recurse (GdkWindow *window,
return;
if (private->input_only ||
- !GDK_WINDOW_IS_MAPPED (window) ||
+ !private->viewable ||
gdk_region_empty (region))
return;
@@ -7813,7 +7813,7 @@ _gdk_window_calculate_full_clip_region (GdkWindow *window,
if (base_y_offset)
*base_y_offset = 0;
- if (!GDK_WINDOW_IS_MAPPED (window) || private->input_only)
+ if (!private->viewable || private->input_only)
return gdk_region_new ();
window_get_size_rectangle (window, &visible_rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]