From 1bb1015fdf7aa7e0963e927d3b084f4a97293abf Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Sat, 6 Sep 2025 15:25:57 -0400 Subject: [PATCH] Dock: one tooltip per app instead of a shared tooltip. avoid a few glitches when hovering. --- Modules/Dock/Dock.qml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Modules/Dock/Dock.qml b/Modules/Dock/Dock.qml index 0795dfa..04d64f7 100644 --- a/Modules/Dock/Dock.qml +++ b/Modules/Dock/Dock.qml @@ -194,12 +194,6 @@ Variants { height: parent.height - (Style.marginM * 2 * scaling) anchors.centerIn: parent - NTooltip { - id: appTooltip - visible: false - positionAbove: true - } - function getAppIcon(toplevel: Toplevel): string { if (!toplevel) return "" @@ -226,6 +220,14 @@ Variants { property string appId: modelData ? modelData.appId : "" property string appTitle: modelData ? modelData.title : "" + // Individual tooltip for this app + NTooltip { + id: appTooltip + target: appButton + positionAbove: true + visible: false + } + // The icon with better quality settings Image { id: appIcon @@ -282,7 +284,6 @@ Variants { onEntered: { anyAppHovered = true const appName = appButton.appTitle || appButton.appId || "Unknown" - appTooltip.target = appButton appTooltip.text = appName.length > 40 ? appName.substring(0, 37) + "..." : appName appTooltip.isVisible = true if (autoHide) {