diff --git a/quickshell/Modules/DankBar/DankBarWindow.qml b/quickshell/Modules/DankBar/DankBarWindow.qml index 5a94e45a..f2d77b2c 100644 --- a/quickshell/Modules/DankBar/DankBarWindow.qml +++ b/quickshell/Modules/DankBar/DankBarWindow.qml @@ -48,10 +48,11 @@ PanelWindow { return; } + let section = "center"; if (clockButtonRef && clockButtonRef.visualContent && dankDashPopoutLoader.item.setTriggerPosition) { // Calculate barPosition from axis.edge const barPosition = axis?.edge === "left" ? 2 : (axis?.edge === "right" ? 3 : (axis?.edge === "top" ? 0 : 1)); - const section = clockButtonRef.section || "center"; + section = clockButtonRef.section || "center"; let triggerPos, triggerWidth; if (section === "center") {