From 1e25cb746a709eb4f8babcd3b5f9b1d27785e4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 25 Aug 2023 15:47:42 +0200 Subject: [PATCH] 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: --- src/core/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index 8ea18a5bc..80a28f259 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -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) {