From e3b64912b60bc7d8efcc4d9ef28d9b3f7f7699df Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 6 Dec 2013 17:42:43 -0500 Subject: [PATCH] window-actor: Simplify the unredirected check in cull_out https://bugzilla.gnome.org/show_bug.cgi?id=720631 --- src/compositor/meta-window-actor.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 652ce04f5..b9bcba609 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -1725,15 +1725,11 @@ meta_window_actor_cull_out (MetaCullable *cullable, cairo_region_t *clip_region) { MetaWindowActor *self = META_WINDOW_ACTOR (cullable); + MetaWindowActorPrivate *priv = self->priv; - if (!meta_is_wayland_compositor ()) - { - MetaCompScreen *info = meta_screen_get_compositor_data (self->priv->screen); - - /* Don't do any culling for the unredirected window */ - if (self == info->unredirected_window) - return; - } + /* 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);