From 7ba61a7de4f908517d885fe22ebdb014457bde25 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Wed, 28 Jan 2026 16:24:13 -0800 Subject: [PATCH] qs: use implicit size --- modules/user/modules/quickshell/shell/bar/BarContainment.qml | 4 ++-- modules/user/modules/quickshell/shell/bar/Tooltip.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/user/modules/quickshell/shell/bar/BarContainment.qml b/modules/user/modules/quickshell/shell/bar/BarContainment.qml index f0a6317..23e36cd 100644 --- a/modules/user/modules/quickshell/shell/bar/BarContainment.qml +++ b/modules/user/modules/quickshell/shell/bar/BarContainment.qml @@ -18,7 +18,7 @@ PanelWindow { property real baseWidth: 55 property real leftMargin: root.compactState * 10 - width: baseWidth + 15 + implicitWidth: baseWidth + 15 exclusiveZone: baseWidth + (isFullscreenWorkspace ? 0 : 15) - margins.left mask: Region { @@ -42,7 +42,7 @@ PanelWindow { return Math.max(barRect.anchors.topMargin + height, Math.min(barRect.height + barRect.anchors.topMargin - height, targetY)) } - readonly property bool isFullscreenWorkspace: Hyprland.monitorFor(screen).activeWorkspace.hasFullscreen + readonly property bool isFullscreenWorkspace: Hyprland.monitorFor(screen).activeWorkspace?.hasFullscreen ?? false property real compactState: isFullscreenWorkspace ? 0 : 1 Behavior on compactState { NumberAnimation { diff --git a/modules/user/modules/quickshell/shell/bar/Tooltip.qml b/modules/user/modules/quickshell/shell/bar/Tooltip.qml index bf68795..4e57b5a 100644 --- a/modules/user/modules/quickshell/shell/bar/Tooltip.qml +++ b/modules/user/modules/quickshell/shell/bar/Tooltip.qml @@ -101,8 +101,8 @@ Scope { } //height: bar.height - width: Math.max(700, tooltipItem.largestAnimWidth) // max due to qtwayland glitches - height: { + implicitWidth: Math.max(700, tooltipItem.largestAnimWidth) // max due to qtwayland glitches + implicitHeight: { const h = tooltipItem.lowestAnimY - tooltipItem.highestAnimY //console.log(`seth ${h} ${tooltipItem.highestAnimY} ${tooltipItem.lowestAnimY}; ${tooltipItem.y1} ${tooltipItem.y2}`) return h