da-rth / yasb

A highly configurable cross-platform (Windows) status bar written in Python.
MIT License
1.4k stars 81 forks source link

[BUG] komorebi-active-layout is not updated when workspace is switched #89

Open Fuann-Kinoko opened 1 year ago

Fuann-Kinoko commented 1 year ago

Expected Behavior

Assume there are two workspaces named 0 and 1, active-layout of workspace 0 is bsp and active-layout of workspace 1 is monocle

Switching from workspace 0 to workspace 1 should update the layout status, from bsp to monocle

This is not a big problem though. But I like to take a glance at the current layout from time to time, just to make sure I'm not in the monocle layout since I can't remember how many windows are there. So probably it would be better if there's a fix to this little issue?

Current Behavior

_update_active_layout isn't triggered until there's a manual change

similarly, if the tiling is paused, then the inital status of komorebi-active-layout after re-tiling won't get updated, but still in the pause-status.

Steps to Reproduce

  1. ensure there are two workspaces that have two different layouts
  2. switch from one to another
  3. check if the active-layout is updated
Fuann-Kinoko commented 1 year ago

and maybe there's a relevent bug, I'm not sure whether it is caused by komorebi or not:

Assume hide_empty_workspaces is set to true, then if a workspace which has only one window is in the monocle layout in the same time, then it would be considered as hidden if the user switch to other workspaces