Commit d0366e51 authored by Alexander Larsson's avatar Alexander Larsson

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)
parent c25ef64c
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment