Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wm): avoid focus loops on ws w/ floating hwnds
This commit adds a check which will only allow the focused workspace to have a full update if the number of managed containers is non-zero. Previously, this would be triggered in a loop when focusing a workspace with only focused windows. Going back in time to the first versions of komorebi and yatta which didn't have so many different container and window kinds, this was intended to be called whenever the focus was changed to update the state. With the complexity komorebi handles in 2025, there are also many calls to Win32 APIs when we call self.update_focused_workspace, so we need to be a bit more careful about when and where we call it. re #816
- Loading branch information