Repository navigation
tray: open tray menus on hover - #4360
Conversation
With bar hover popouts enabled, hovering a tray icon never opened its menu. The hover hit test looked up the tray layout through the pill's first visual child and a `layoutLoader` id, which is not a property, so it never found an icon. It now goes through the pill's content item and a real property on it. A hover-opened menu is requested as a hover popout, so it switches to the next icon and closes when the pointer moves away like other hover popouts; only menus opened with a click keep the bar's hover chain alive. Pressing or activating an icon ends the bar's hover on that screen and suppresses the reopen, so activating an icon no longer leaves its menu open, and no menu opens while icons are dragged to reorder them. When a toggle-close reaches the bar, it now closes a hover surface that is still open (another widget's popout, the notepad) instead of losing track of it; while a click-opened popout is open it keeps tracking it. The bar keeps the reopen suppression until its close grace actually ends instead of dropping it on a brief bar leave, which the click otherwise triggered.
Claude reviewNo issues found. |
|
Please rebase |
# Conflicts: # quickshell/Modules/DBar/DBarHoverController.qml
Claude reviewNo issues found. |
Description
With hover popouts enabled, hovering a tray icon never opened its menu, while every other widget opened its popout on hover. Now tray menus open on hover too, switch when moving to the next icon and close when the pointer leaves, like the other hover popouts. Clicking an icon still activates it and closes the hover menu, and right-click still opens the menu pinned.
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