From 3d6e335030eb1cb812d4815de628896c73a39ad4 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 12 Sep 2025 18:18:27 +1000 Subject: launcher: fix exclusion with utilities --- modules/launcher/WallpaperList.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/launcher/WallpaperList.qml b/modules/launcher/WallpaperList.qml index 874111d..75916df 100644 --- a/modules/launcher/WallpaperList.qml +++ b/modules/launcher/WallpaperList.qml @@ -23,10 +23,13 @@ PathView { return 0; // Screen width - 4x outer rounding - 2x max side thickness (cause centered) - let outerMargins = Math.max(Config.border.thickness, panels.bar.implicitWidth); + const barMargins = Math.max(Config.border.thickness, panels.bar.implicitWidth); + let outerMargins = 0; if (panels.popouts.hasCurrent && panels.popouts.currentCenter + panels.popouts.nonAnimHeight / 2 > screen.height - content.implicitHeight - Config.border.thickness * 2) - outerMargins = panels.bar.implicitWidth + panels.popouts.nonAnimWidth; - const maxWidth = screen.width - Config.border.rounding * 4 - outerMargins * 2; + outerMargins = panels.popouts.nonAnimWidth; + if (visibilities.utilities && panels.utilities.implicitWidth > outerMargins) + outerMargins = panels.utilities.implicitWidth; + const maxWidth = screen.width - Config.border.rounding * 4 - (barMargins + outerMargins) * 2; if (maxWidth <= 0) return 0; -- cgit v1.2.3-freya