mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01:00
enforce_workspace_rules moves a window between workspaces at the start of an event but known_window_ids is only rebuilt at the end of process_event, so it still said the window was on the focused workspace. A Show for the application in the same event then passed the 'already associated with another workspace' check, found the window in no container of the focused workspace, and created a container for it there again: the window ended up in the containers of both workspaces and in view on the one the rule sent it from. Windows guards the same place by looking for the window in every workspace before adding it; here the index is brought up to date when the enforcement moved something.