aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorEBADBEEF <errno@ebadf.com>2023-10-20 10:29:06 -0700
committerSimon Ser <contact@emersion.fr>2023-11-21 14:57:58 +0100
commit86f96a786bac957f5195e894c94b1ce7eb93ef09 (patch)
treea7fcb2d1b8745361f43d054f7cb80fd97ae02d1d /sway
parentc3ec141b3445b37b938c504341c7856d61a34cb9 (diff)
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.
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/view.c2
1 files changed, 2 insertions, 0 deletions
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;