[mutter/wip/surface-content: 10/20] window-actor: Simplify the unredirected check in cull_out
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/surface-content: 10/20] window-actor: Simplify the unredirected check in cull_out
- Date: Sat, 7 Dec 2013 02:26:31 +0000 (UTC)
commit 1e07d207a22ac63a6d21c9924b84c0e444aeac53
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Dec 6 17:42:43 2013 -0500
window-actor: Simplify the unredirected check in cull_out
src/compositor/meta-window-actor.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 7a22e9c..82b7710 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -1845,15 +1845,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]