summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdk/gdkwindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 7a000aaed3..fc0a2379ae 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5135,7 +5135,8 @@ gdk_window_invalidate_maybe_recurse (GdkWindow *window,
if (private->input_only ||
!private->viewable ||
- gdk_region_empty (region))
+ gdk_region_empty (region) ||
+ private->window_type == GDK_WINDOW_ROOT)
return;
visible_region = gdk_drawable_get_visible_region (window);