Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions shell-launcher-applet/package/launcheritem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -486,15 +486,6 @@ AppletItem {
onXChanged: updateLaunchpadPos()
onYChanged: updateLaunchpadPos()
}
Timer {
id: toolTipShowTimer
interval: 50
onTriggered: {
var point = Applet.rootObject.mapToItem(null, Applet.rootObject.width / 2, Applet.rootObject.height / 2)
toolTip.DockPanelPositioner.bounding = Qt.rect(point.x, point.y, toolTip.width, toolTip.height)
toolTip.open()
}
}

TapHandler {
id: tapHandler
Expand All @@ -518,12 +509,10 @@ AppletItem {
HoverHandler {
onHoveredChanged: {
if (hovered) {
toolTipShowTimer.start()
const point = launcher.mapToItem(null, launcher.width / 2, launcher.height / 2)
toolTip.DockPanelPositioner.bounding = Qt.rect(point.x, point.y, toolTip.width, toolTip.height)
Comment on lines +512 to +513

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Tooltip appears at old position

When the dock or launcher moves or resizes while the tooltip is waiting to open, the hover handler captures the launcher bounds before PanelToolTip.open() waits for the shared delay. The dock movement leaves DockPanelPositioner.bounding stale, so the tooltip appears at the launcher’s previous position.

Update DockPanelPositioner.bounding after the delay using the launcher’s current position and size.

Prompt for AI agents
In `shell-launcher-applet/package/launcheritem.qml` at lines 512-513:

**Tooltip appears at old position**

When the dock or launcher moves or resizes while the tooltip is waiting to open, the hover handler captures the launcher bounds before `PanelToolTip.open()` waits for the shared delay. The dock movement leaves `DockPanelPositioner.bounding` stale, so the tooltip appears at the launcher’s previous position.

Update `DockPanelPositioner.bounding` after the delay using the launcher’s current position and size.

toolTip.open()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Tooltip appears after right-click

When the pointer is hovering over the icon and the user right-clicks before the shared tooltip delay expires, the right-button tap is accepted, but the handler only calls toggleLauncher() for left-button clicks and does not close or cancel the pending tooltip. PanelToolTip.open() therefore completes its delay and the tooltip appears after the right-click.

Cancel or close the pending tooltip when the handler accepts a right-button tap.

Also at shell-launcher-applet/package/launcheritem.qml:515.

Prompt for AI agents
In `shell-launcher-applet/package/launcheritem.qml` at line 514:

**Tooltip appears after right-click**

When the pointer is hovering over the icon and the user right-clicks before the shared tooltip delay expires, the right-button tap is accepted, but the handler only calls `toggleLauncher()` for left-button clicks and does not close or cancel the pending tooltip. `PanelToolTip.open()` therefore completes its delay and the tooltip appears after the right-click.

Cancel or close the pending tooltip when the handler accepts a right-button tap.

Also at `shell-launcher-applet/package/launcheritem.qml:515`.

} else {
if (toolTipShowTimer.running) {
toolTipShowTimer.stop()
}

toolTip.close()
}
}
Expand Down
Loading