window-actor: Do not request unredirection when destroyed
WindowActors can outlive their corresponding window to animate unmap. Unredirecting the actor does not make sense in that case, so make sure to not request it. https://bugzilla.gnome.org/show_bug.cgi?id=740133
This commit is contained in:
@ -1155,7 +1155,7 @@ gboolean
|
|||||||
meta_window_actor_should_unredirect (MetaWindowActor *self)
|
meta_window_actor_should_unredirect (MetaWindowActor *self)
|
||||||
{
|
{
|
||||||
MetaWindowActorPrivate *priv = self->priv;
|
MetaWindowActorPrivate *priv = self->priv;
|
||||||
if (priv->surface)
|
if (!meta_window_actor_is_destroyed (self) && priv->surface)
|
||||||
return meta_surface_actor_should_unredirect (priv->surface);
|
return meta_surface_actor_should_unredirect (priv->surface);
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user