Skip to content

Commit

Permalink
fix(bar): consider all window types when hiding empty ws
Browse files Browse the repository at this point in the history
This commit ensures that floating windows, monocle containers and
maximized windows will be considered when the hide_empty_workspaces
option is enabled for the komorebi widget.

re #1131
  • Loading branch information
LGUG2Z committed Jan 26, 2025
1 parent 4a83623 commit f73f0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebi-bar/src/komorebi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl KomorebiNotificationState {

for (i, ws) in monitor.workspaces().iter().enumerate() {
let should_show = if self.hide_empty_workspaces {
focused_workspace_idx == i || !ws.containers().is_empty()
focused_workspace_idx == i || !ws.is_empty()
} else {
true
};
Expand Down

0 comments on commit f73f0a0

Please sign in to comment.