From edcba65156fc7433e93e301455754732379696d4 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/komorebi-bar/src/komorebi.rs b/komorebi-bar/src/komorebi.rs index cef64196..336f22dc 100644 --- a/komorebi-bar/src/komorebi.rs +++ b/komorebi-bar/src/komorebi.rs @@ -570,7 +570,11 @@ 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.containers().is_empty() + || !ws.floating_windows().is_empty() + || ws.monocle_container().is_some() + || ws.maximized_window().is_some() } else { true };