mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 10:08:33 +02:00
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:
@@ -570,7 +570,11 @@ impl KomorebiNotificationState {
|
|||||||
|
|
||||||
for (i, ws) in monitor.workspaces().iter().enumerate() {
|
for (i, ws) in monitor.workspaces().iter().enumerate() {
|
||||||
let should_show = if self.hide_empty_workspaces {
|
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 {
|
} else {
|
||||||
true
|
true
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user