diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index e96853a6b6..1832a61d9e 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -647,6 +647,8 @@ gdk_wayland_surface_sync_opaque_region (GdkSurface *surface) for (gsize i = 0; i < gdk_surface_get_n_subsurfaces (surface); i++) { GdkWaylandSubsurface *sub = (GdkWaylandSubsurface *)gdk_surface_get_subsurface (surface, i); + if (sub->above_parent) + continue; if (sub->texture != NULL) cairo_region_subtract_rectangle (region, &sub->dest); }