mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +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);
|
wl_list_remove(&view->surface_new_subsurface.link);
|
||||||
|
|
||||||
|
view->executed_criteria->length = 0;
|
||||||
|
|
||||||
if (view->urgent_timer) {
|
if (view->urgent_timer) {
|
||||||
wl_event_source_remove(view->urgent_timer);
|
wl_event_source_remove(view->urgent_timer);
|
||||||
view->urgent_timer = NULL;
|
view->urgent_timer = NULL;
|
||||||
|
|
Loading…
Reference in a new issue