From e8ebf5af73c8cfcec8f0f8257273c6690c44c79c Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 11 Aug 2025 22:33:11 +0700 Subject: [PATCH] bar tooltip: fix placement for autohide --- .../quickshell/ii/modules/common/widgets/StyledPopup.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml b/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml index baa37cce9..af5c0ae5c 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledPopup.qml @@ -1,9 +1,5 @@ -import qs import qs.modules.common -import qs.modules.common.widgets -import qs.services import QtQuick -import QtQuick.Layouts import QtQuick.Effects import Quickshell import Quickshell.Wayland @@ -20,7 +16,6 @@ LazyLoader { id: popupWindow visible: true color: "transparent" - exclusiveZone: 0 anchors.left: true anchors.top: !Config.options.bar.bottom @@ -29,11 +24,15 @@ LazyLoader { implicitWidth: popupBackground.implicitWidth + Appearance.sizes.hyprlandGapsOut * 2 implicitHeight: popupBackground.implicitHeight + Appearance.sizes.hyprlandGapsOut * 2 + exclusionMode: ExclusionMode.Ignore + exclusiveZone: 0 margins { left: root.QsWindow?.mapFromItem( root.hoverTarget, (root.hoverTarget.width - popupBackground.implicitWidth) / 2, 0 ).x + top: Config?.options.bar.bottom ? 0 : Appearance.sizes.barHeight + bottom: Config?.options.bar.bottom ? Appearance.sizes.barHeight : 0 } WlrLayershell.namespace: "quickshell:popup" WlrLayershell.layer: WlrLayer.Overlay