From 86f96a786bac957f5195e894c94b1ce7eb93ef09 Mon Sep 17 00:00:00 2001 From: EBADBEEF Date: Fri, 20 Oct 2023 10:29:06 -0700 Subject: [PATCH] view: re-apply criteria when window gets unmapped Remove any existing executed criteria items at unmap time. If a window gets unmapped but not destroyed, we want to reapply 'for_window' criteria. Fixes #6905. --- sway/tree/view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/tree/view.c b/sway/tree/view.c index a9035de7..00dc4721 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -882,6 +882,8 @@ void view_unmap(struct sway_view *view) { wl_list_remove(&view->surface_new_subsurface.link); + view->executed_criteria->length = 0; + if (view->urgent_timer) { wl_event_source_remove(view->urgent_timer); view->urgent_timer = NULL;