From f73f0a0012d34f21d42e2915f874f8fe491523b8 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 24 Jan 2025 12:48:10 -0800 Subject: [PATCH] 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 --- komorebi-bar/src/komorebi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi-bar/src/komorebi.rs b/komorebi-bar/src/komorebi.rs index cef64196..61878fef 100644 --- a/komorebi-bar/src/komorebi.rs +++ b/komorebi-bar/src/komorebi.rs @@ -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 };