[gtk+] Don't draw to unviewable windows
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Don't draw to unviewable windows
- Date: Fri, 10 Jul 2009 22:35:35 +0000 (UTC)
commit d0366e5160af88e9fa6842c5492db1bd58be5379
Author: Alexander Larsson <alexl redhat com>
Date: Sat Jul 11 00:28:18 2009 +0200
Don't draw to unviewable windows
The scrolling and region moving code needs to avoid drawing when the
window is mapped, which it did. However, it also needs to avoid
drawing when any of its parents are not mapped, which it didn't so
switch to using gdk_window_is_viewable().
This fixes the index rendering in evolution (#588169)
gdk/gdkwindow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index dd7df89..c601ec8 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6256,7 +6256,7 @@ gdk_window_move_resize_toplevel (GdkWindow *window,
is_resize = (width != -1) || (height != -1);
- if (GDK_WINDOW_IS_MAPPED (window) &&
+ if (gdk_window_is_viewable (window) &&
!private->input_only)
{
expose = TRUE;
@@ -6405,7 +6405,7 @@ gdk_window_move_resize_internal (GdkWindow *window,
old_x = private->x;
old_y = private->y;
- if (GDK_WINDOW_IS_MAPPED (window) &&
+ if (gdk_window_is_viewable (window) &&
!private->input_only)
{
expose = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]