1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

workspace: fix ext-ws hiding

This commit is contained in:
bbedward
2025-11-16 18:52:12 -05:00
parent 3e2ab40c6a
commit 00c06f07d0

View File

@@ -438,11 +438,9 @@ Item {
} }
} }
readonly property bool hasWorkspaces: { readonly property bool hasNativeWorkspaceSupport: CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway
const realWorkspaces = getRealWorkspaces() readonly property bool hasWorkspaces: getRealWorkspaces().length > 0
return realWorkspaces.length > 0 readonly property bool shouldShow: hasNativeWorkspaceSupport || (useExtWorkspace && hasWorkspaces)
}
readonly property bool shouldShow: (CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway || useExtWorkspace) && hasWorkspaces
width: shouldShow ? (isVertical ? barThickness : visualWidth) : 0 width: shouldShow ? (isVertical ? barThickness : visualWidth) : 0
height: shouldShow ? (isVertical ? visualHeight : barThickness) : 0 height: shouldShow ? (isVertical ? visualHeight : barThickness) : 0