From e26045ec73295750c9cc39c29cc07c83613621f5 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 31 Aug 2025 08:04:23 +0200 Subject: [PATCH] background: clock size: safer access --- .config/quickshell/ii/modules/background/Background.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 575a482e2..39bc95e56 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 = clockLoader.item.implicitWidth + root.clockSizePadding * 2 - leastBusyRegionProc.contentHeight = clockLoader.item.implicitHeight + root.clockSizePadding * 2 + leastBusyRegionProc.contentWidth = clockLoader.implicitWidth + root.clockSizePadding * 2 + leastBusyRegionProc.contentHeight = clockLoader.implicitHeight + root.clockSizePadding * 2 leastBusyRegionProc.horizontalPadding = bgRoot.movableXSpace + root.screenSizePadding * 2 leastBusyRegionProc.verticalPadding = bgRoot.movableYSpace + root.screenSizePadding * 2 leastBusyRegionProc.running = false;