mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
window-actor: Simplify the unredirected check in cull_out
https://bugzilla.gnome.org/show_bug.cgi?id=720631
This commit is contained in:
parent
a09fa3b0e4
commit
60d9bee3bf
@ -1808,15 +1808,11 @@ meta_window_actor_cull_out (MetaCullable *cullable,
|
|||||||
cairo_region_t *clip_region)
|
cairo_region_t *clip_region)
|
||||||
{
|
{
|
||||||
MetaWindowActor *self = META_WINDOW_ACTOR (cullable);
|
MetaWindowActor *self = META_WINDOW_ACTOR (cullable);
|
||||||
|
MetaWindowActorPrivate *priv = self->priv;
|
||||||
|
|
||||||
if (!meta_is_wayland_compositor ())
|
/* Don't do any culling for the unredirected window */
|
||||||
{
|
if (priv->unredirected)
|
||||||
MetaCompScreen *info = meta_screen_get_compositor_data (self->priv->screen);
|
return;
|
||||||
|
|
||||||
/* Don't do any culling for the unredirected window */
|
|
||||||
if (self == info->unredirected_window)
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
meta_window_actor_set_unobscured_region (self, unobscured_region);
|
meta_window_actor_set_unobscured_region (self, unobscured_region);
|
||||||
meta_cullable_cull_out_children (cullable, unobscured_region, clip_region);
|
meta_cullable_cull_out_children (cullable, unobscured_region, clip_region);
|
||||||
|
Loading…
Reference in New Issue
Block a user