Repository navigation
island: close hover popouts when the pointer moves onto the island - #4346
Conversation
A popout opened by hovering a bar widget stayed open when the pointer moved on to the island, so it covered the island once that opened, whether by hover or by click. The bar's hover tracking decides whether to close a hover popout from the last pointer position it saw, and it stops seeing the pointer once the island's own mouse areas take it. That last position is still on the bar: either on the widget that opened the popout, or inside the popout's 24 px hover margin, which can reach over the island. Either way the bar concluded the pointer was still on its hover chain and kept the popout, and nothing rechecked it afterwards. The island now reports the pointer arriving on it: after the same debounce the bar uses, it asks its bar to close its hover surfaces through the bar's own close path, so the bar's hover state is reset too. A free island has no bar and dismisses the screen's hover popout and hover tray menus directly. Surfaces opened with a click stay open.
Claude reviewNo issues found. |
purian23
left a comment
There was a problem hiding this comment.
Thanks Conava!
- Instead of a new Timer, could the hover controller handle this? A flag that makes
_commitHoverClose()skip the stale-point checks, then restart the existing_hoverCloseTimer. - Let's drop the
barBody == nullfallback. It ignores pinned popouts and closes hover tray menus on every screen.
Address review feedback: instead of its own timer, the island now only tells the bar's hover controller that the pointer moved onto it. The controller restarts its existing close timer, and when that fires it skips the checks that read the stale last bar point, unless the popout reported a newer pointer position in the meantime (the pointer moved on into the popout, which keeps it open). Pinned surfaces still win, and an island entry while the bar has nothing open schedules nothing. The fallback for a free island is gone: it bypassed the bar's pinned checks and closed hover tray menus on every screen.
Claude reviewNo issues found. |
Description
A popout opened by hovering a bar widget stayed open when the pointer moved on to the island, so it covered the island once that opened. And both the widget and the island closed once the mouse left the widget.
Now the widget popout closes as soon as the pointer is on the island, the same way it closes when the pointer leaves the bar anywhere else.
Popouts opened with a click stay open as before since this was a recent change made for this exact purpose as far as I could tell.
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings