Skip to content

tray: open tray menus on hover - #4360

Merged
bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:tray-hover-menus
Nov 25, 2026
Merged

bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:tray-hover-menus

Conversation

@Conava

@Conava Conava commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

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.
@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: hover tray menus opened through requestHoverPopout (they now count as unpinned for hover close, and cursorOverHoverChain covers them through the popout bounds), switching between icons through trayMenuState.close() followed by a reopen (_finishClose bails once the popout is visible again), the press, click and drag suppression through endBarHover and _suppressReopenAfterToggleClose, the toggle-close path in PopoutManager (it still pins and clears correctly), the suppression lifetime across updateBarHovered and _commitHoverClose, and contentItem.layoutItem against BarPill. Model: claude-opus-5-5.

@bbedward

Copy link
Copy Markdown
Member

Please rebase

# Conflicts:
#	quickshell/Modules/DBar/DBarHoverController.qml
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: the rebased diff against current master. Hover tray menus open through requestHoverPopout and count as unpinned in cursorOverHoverChain. Press, click and activate call endBarHover, which routes through popoutToggledClosed to _suppressReopenAfterToggleClose, so pinned surfaces survive and hover surfaces close. The suppression is now cleared in _commitHoverClose rather than on every bar exit, drag guards are in both hover entry points, and contentItem.layoutItem resolves through the BarPill alias. No new timers, connections or processes. Model: claude-opus-5-5.

@bbedward
bbedward merged commit 534db71 into duxlabs-dev:master Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants