From 8199fdd2bf8549423f39279a579e3212afcfd92d Mon Sep 17 00:00:00 2001 From: hoovad Date: Wed, 27 Aug 2025 19:13:21 +0200 Subject: [PATCH] fix undefined error --- .config/quickshell/ii/modules/background/Background.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 430621547..575a482e2 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -117,8 +117,8 @@ Variants { function updateClockPosition() { // Somehow all this manual setting is needed to make the proc correctly use the new values leastBusyRegionProc.path = bgRoot.wallpaperPath - leastBusyRegionProc.contentWidth = clock.implicitWidth + root.clockSizePadding * 2 - leastBusyRegionProc.contentHeight = clock.implicitHeight + root.clockSizePadding * 2 + leastBusyRegionProc.contentWidth = clockLoader.item.implicitWidth + root.clockSizePadding * 2 + leastBusyRegionProc.contentHeight = clockLoader.item.implicitHeight + root.clockSizePadding * 2 leastBusyRegionProc.horizontalPadding = bgRoot.movableXSpace + root.screenSizePadding * 2 leastBusyRegionProc.verticalPadding = bgRoot.movableYSpace + root.screenSizePadding * 2 leastBusyRegionProc.running = false; @@ -216,6 +216,7 @@ Variants { // The clock Loader { + id: clockLoader active: Config.options.background.showClock anchors { left: wallpaper.left