mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00: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
|
@ -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