From 5ac81e6dd63957db8387f08af2f6ef004b25cc5a Mon Sep 17 00:00:00 2001 From: bbedward Date: Fri, 26 Dec 2025 14:38:08 -0500 Subject: [PATCH] dankbar: dont apply exclusive zone to popup positioning --- quickshell/Common/SettingsData.qml | 3 ++- quickshell/Modules/DankBar/DankBarWindow.qml | 7 +------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/quickshell/Common/SettingsData.qml b/quickshell/Common/SettingsData.qml index d4e43913..74c8fda5 100644 --- a/quickshell/Common/SettingsData.qml +++ b/quickshell/Common/SettingsData.qml @@ -916,7 +916,8 @@ Singleton { const defaultBar = barConfigs[0] || getBarConfig("default"); const spacing = barSpacing !== undefined ? barSpacing : (defaultBar?.spacing ?? 4); const position = barPosition !== undefined ? barPosition : (defaultBar?.position ?? SettingsData.Position.Top); - const bottomGap = barConfig ? (barConfig.bottomGap !== undefined ? barConfig.bottomGap : (defaultBar?.bottomGap ?? 0)) : (defaultBar?.bottomGap ?? 0); + const rawBottomGap = barConfig ? (barConfig.bottomGap !== undefined ? barConfig.bottomGap : (defaultBar?.bottomGap ?? 0)) : (defaultBar?.bottomGap ?? 0); + const bottomGap = Math.max(0, rawBottomGap); const useAutoGaps = (barConfig && barConfig.popupGapsAuto !== undefined) ? barConfig.popupGapsAuto : (defaultBar?.popupGapsAuto ?? true); const manualGapValue = (barConfig && barConfig.popupGapsManual !== undefined) ? barConfig.popupGapsManual : (defaultBar?.popupGapsManual ?? 4); diff --git a/quickshell/Modules/DankBar/DankBarWindow.qml b/quickshell/Modules/DankBar/DankBarWindow.qml index 30bfc814..c5c206fd 100644 --- a/quickshell/Modules/DankBar/DankBarWindow.qml +++ b/quickshell/Modules/DankBar/DankBarWindow.qml @@ -96,12 +96,7 @@ PanelWindow { } } - WlrLayershell.layer: { - if ((barConfig?.autoHide ?? false) && topBarCore.reveal) { - return WlrLayer.Overlay; - } - return dBarLayer; - } + WlrLayershell.layer: dBarLayer WlrLayershell.namespace: "dms:bar" signal colorPickerRequested