1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

ipc: Fix DankDash Wallpaper call

This commit is contained in:
purian23
2026-02-21 00:52:08 -05:00
parent 65516e872f
commit 46d4288969

View File

@@ -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") {