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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user