1
0
Fork 0

window-actor: Don't update suspend state if no window

If the window is gone, don't try to update it. This might happen on
unmap animations with active clones.

Fixes: 9a2c8b2592 ("window: Add suspend state")
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2984
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3213>
This commit is contained in:
Jonas Ådahl 2023-08-25 18:44:37 +02:00
parent cb6290832e
commit 87b7b073d3

View file

@ -478,7 +478,8 @@ on_decloned (ClutterActor *actor,
meta_window_actor_get_instance_private (window_actor);
g_signal_handlers_disconnect_by_func (clone, on_clone_notify_mapped, actor);
if (clutter_actor_is_mapped (CLUTTER_ACTOR (clone)))
if (clutter_actor_is_mapped (CLUTTER_ACTOR (clone)) &&
priv->window)
meta_window_uninhibit_suspend_state (priv->window);
}