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)
This commit is contained in:
Alexander Larsson 2009-07-11 00:28:18 +02:00
parent c25ef64c70
commit d0366e5160

View File

@ -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;