diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-11 20:53:56 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-11 20:53:56 +1100 |
| commit | af927d12a3594a37a0c8582d76fade54d9b9e58d (patch) | |
| tree | 8db27eeb2bf667cebeacb38157678c9164e4b49f /src/modules/launcher.tsx | |
| parent | tooltip: ensure fully visible (diff) | |
| download | caelestia-shell-af927d12a3594a37a0c8582d76fade54d9b9e58d.tar.gz caelestia-shell-af927d12a3594a37a0c8582d76fade54d9b9e58d.tar.bz2 caelestia-shell-af927d12a3594a37a0c8582d76fade54d9b9e58d.zip | |
tooltip: position at cursor not widget
Diffstat (limited to 'src/modules/launcher.tsx')
| -rw-r--r-- | src/modules/launcher.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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 }) ); |