diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index c6071979c..f0cbc0cb5 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -1651,11 +1651,12 @@ meta_window_actor_cull_out (MetaCullable *cullable, MetaWindowActor *self = META_WINDOW_ACTOR (cullable); MetaWindowActorPrivate *priv = self->priv; + meta_cullable_cull_out_children (cullable, unobscured_region, clip_region); + /* Don't do any culling for the unredirected window */ if (priv->unredirected) return; - meta_cullable_cull_out_children (cullable, unobscured_region, clip_region); meta_window_actor_set_clip_region_beneath (self, clip_region); } diff --git a/src/compositor/meta-window-group.c b/src/compositor/meta-window-group.c index 542060531..4096e4871 100644 --- a/src/compositor/meta-window-group.c +++ b/src/compositor/meta-window-group.c @@ -164,19 +164,6 @@ meta_window_group_paint (ClutterActor *actor) paint_y_offset = paint_y_origin - actor_y_origin; cairo_region_translate (clip_region, -paint_x_offset, -paint_y_offset); - if (!meta_is_wayland_compositor ()) - { - MetaCompScreen *info = meta_screen_get_compositor_data (window_group->screen); - if (info->unredirected_window != NULL) - { - cairo_rectangle_int_t unredirected_rect; - - meta_window_get_frame_rect (info->unredirected_window, (MetaRectangle *)&unredirected_rect); - cairo_region_subtract_rectangle (unobscured_region, &unredirected_rect); - cairo_region_subtract_rectangle (clip_region, &unredirected_rect); - } - } - meta_cullable_cull_out (META_CULLABLE (window_group), unobscured_region, clip_region); cairo_region_destroy (unobscured_region);