mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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:
parent
c25ef64c70
commit
d0366e5160
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user