From 00c06f07d015b12c8f0cc662c02ce12b36f6a8f0 Mon Sep 17 00:00:00 2001 From: bbedward Date: Sun, 16 Nov 2025 18:52:12 -0500 Subject: [PATCH] workspace: fix ext-ws hiding --- quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml b/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml index 16ec5716..f392479c 100644 --- a/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml +++ b/quickshell/Modules/DankBar/Widgets/WorkspaceSwitcher.qml @@ -438,11 +438,9 @@ Item { } } - readonly property bool hasWorkspaces: { - const realWorkspaces = getRealWorkspaces() - return realWorkspaces.length > 0 - } - readonly property bool shouldShow: (CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway || useExtWorkspace) && hasWorkspaces + readonly property bool hasNativeWorkspaceSupport: CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway + readonly property bool hasWorkspaces: getRealWorkspaces().length > 0 + readonly property bool shouldShow: hasNativeWorkspaceSupport || (useExtWorkspace && hasWorkspaces) width: shouldShow ? (isVertical ? barThickness : visualWidth) : 0 height: shouldShow ? (isVertical ? visualHeight : barThickness) : 0