From af927d12a3594a37a0c8582d76fade54d9b9e58d Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Tue, 11 Feb 2025 20:53:56 +1100
Subject: tooltip: position at cursor not widget

---
 src/modules/launcher.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/modules/launcher.tsx')

diff --git a/src/modules/launcher.tsx b/src/modules/launcher.tsx
index 8949444..5462067 100644
--- a/src/modules/launcher.tsx
+++ b/src/modules/launcher.tsx
@@ -160,13 +160,13 @@ const Result = ({
     <button
         className="result"
         cursor="pointer"
-        tooltipText={tooltip}
         onClicked={onClicked}
         onClick={(self, event) => {
             if (event.button === Astal.MouseButton.SECONDARY) onSecondaryClick?.(self);
             else if (event.button === Astal.MouseButton.MIDDLE) onMiddleClick?.(self);
         }}
         onDestroy={onDestroy}
+        setup={self => tooltip && setupCustomTooltip(self, tooltip)}
     >
         <box>
             {icon &&
@@ -399,7 +399,7 @@ const WindowResult = ({ client, reload }: { client: Client; reload: () => void }
                                         close(result);
                                         execAsync(`wl-copy -- ${value}`).catch(console.error);
                                     },
-                                    tooltipText: String(value),
+                                    tooltipText: String(value), // Cannot use custom tooltip cause it'll be below menu
                                 })
                             );
 
-- 
cgit v1.2.3-freya

