diff --git a/src/components/bar/modules/workspaces/helpers/utils.ts b/src/components/bar/modules/workspaces/helpers/utils.ts index 5f6ab5d..945729e 100644 --- a/src/components/bar/modules/workspaces/helpers/utils.ts +++ b/src/components/bar/modules/workspaces/helpers/utils.ts @@ -258,7 +258,7 @@ export const renderLabel = ( if (hyprlandService.focusedWorkspace.id === i || isWorkspaceActiveOnMonitor(monitor, i)) { return activeIndicator; } - if ((hyprlandService.get_workspace(i)?.clients.length || 0) > 0) { + if ((hyprlandService.get_workspace(i)?.get_clients().length || 0) > 0) { return occupiedIndicator; } if (monitor !== -1) { diff --git a/src/lib/behaviors/autoHide.ts b/src/lib/behaviors/autoHide.ts index 6ad6f1b..d3ab6d3 100644 --- a/src/lib/behaviors/autoHide.ts +++ b/src/lib/behaviors/autoHide.ts @@ -31,7 +31,7 @@ export const initializeAutoHide = (): void => { hyprlandService.workspaces.map((workspace) => { if (autoHide.get() === 'single-window') { - App.get_window(`bar-${workspace.monitor.id}`)?.set_visible(workspace.clients.length !== 1); + App.get_window(`bar-${workspace.monitor.id}`)?.set_visible(workspace.get_clients().length !== 1); } }); });