From 4fcfd0350eb3342ab163f36759798f7ca2b15cd7 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 8 May 2023 20:14:27 +0200 Subject: [PATCH] core: Sync actor frozen state after destroying frame A window may become undecorated while the frame window is frozen due to updates. In that case we would both miss a reply for the frame window, and any other means to trigger the window actor being thawed. Check the frozen state after destroying the frame, so that meta_window_x11_are_updates_frozen() may end up changing opinion if the frame window was caught in this situation. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2639 Part-of: --- src/core/frame.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/frame.c b/src/core/frame.c index 80a3dbc0f..fbb51a37b 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -246,6 +246,9 @@ meta_window_destroy_frame (MetaWindow *window) g_free (frame); /* Put our state back where it should be */ + if (!window->unmanaging) + meta_compositor_sync_updates_frozen (window->display->compositor, window); + meta_window_queue (window, META_QUEUE_CALC_SHOWING); meta_window_queue (window, META_QUEUE_MOVE_RESIZE); }