diff options
author | EBADBEEF <errno@ebadf.com> | 2023-10-20 10:29:06 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-11-21 14:57:58 +0100 |
commit | 86f96a786bac957f5195e894c94b1ce7eb93ef09 (patch) | |
tree | a7fcb2d1b8745361f43d054f7cb80fd97ae02d1d /sway/tree | |
parent | seat: Fix cursor theme reload for tablet tool (diff) | |
download | sway-86f96a786bac957f5195e894c94b1ce7eb93ef09.tar.gz sway-86f96a786bac957f5195e894c94b1ce7eb93ef09.tar.zst sway-86f96a786bac957f5195e894c94b1ce7eb93ef09.zip |
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/tree')
-rw-r--r-- | sway/tree/view.c | 2 |
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) { | |||
882 | 882 | ||
883 | wl_list_remove(&view->surface_new_subsurface.link); | 883 | wl_list_remove(&view->surface_new_subsurface.link); |
884 | 884 | ||
885 | view->executed_criteria->length = 0; | ||
886 | |||
885 | if (view->urgent_timer) { | 887 | if (view->urgent_timer) { |
886 | wl_event_source_remove(view->urgent_timer); | 888 | wl_event_source_remove(view->urgent_timer); |
887 | view->urgent_timer = NULL; | 889 | view->urgent_timer = NULL; |