From cc59362a1a73ce22c01423abdc32f8e2abf35162 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 3 Oct 2025 22:01:51 -0400 Subject: [PATCH] Tooltip-TrayMenu: only use the simple mapToItem. --- Modules/Bar/Extras/TrayMenu.qml | 2 +- Modules/Tooltip/Tooltip.qml | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Modules/Bar/Extras/TrayMenu.qml b/Modules/Bar/Extras/TrayMenu.qml index 415333fd4..4dc800286 100644 --- a/Modules/Bar/Extras/TrayMenu.qml +++ b/Modules/Bar/Extras/TrayMenu.qml @@ -225,7 +225,7 @@ PopupWindow { // Check bar position first const barPosition = Settings.data.bar.position - const globalPos = entry.mapToGlobal(0, 0) + const globalPos = entry.mapToItem(null, 0, 0) if (barPosition === "right") { // Bar is on the right, prefer opening submenus to the left diff --git a/Modules/Tooltip/Tooltip.qml b/Modules/Tooltip/Tooltip.qml index 3e449998f..64e98e7e9 100644 --- a/Modules/Tooltip/Tooltip.qml +++ b/Modules/Tooltip/Tooltip.qml @@ -167,14 +167,7 @@ PopupWindow { root.implicitHeight = tipHeight // Get target's global position - var targetGlobal - const targetWindow = targetItem.Window.window - if (targetWindow) { - targetGlobal = targetItem.mapToItem(targetWindow.contentItem, 0, 0) - } else { - targetGlobal = targetItem.mapToItem(null, 0, 0) - } - + var targetGlobal = targetItem.mapToItem(null, 0, 0) const targetWidth = targetItem.width const targetHeight = targetItem.height