fix(bar): consider all window types when hiding empty ws

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
This commit is contained in:
LGUG2Z
2025-01-24 12:48:10 -08:00
parent 4a8362336f
commit f73f0a0012

View File

@@ -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
};