mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 07:26:55 +01:00
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.
This commit is contained in:
parent
c3ec141b34
commit
86f96a786b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue