window: Don't update suspend state after unmanaging

The actor will try to update the suspend state when it goes away, which
can in the case of unmap animations be after the window was unmanaged.
In this case, don't try to update any suspend state.

Fixes: 9a2c8b2592 ("window: Add suspend state")
Related: 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 15:47:42 +02:00
parent b743cc3528
commit 1e25cb746a

View File

@ -2130,6 +2130,9 @@ update_suspend_state (MetaWindow *window)
{
MetaWindowPrivate *priv = meta_window_get_instance_private (window);
if (window->unmanaging)
return;
if (!window->hidden &&
priv->suspend_state_inhibitors > 0)
{