Skip to content

Reveal hidden indicators only when hovering their own block - #18524

Merged
dhh merged 2 commits into
quattrofrom
worktree-indicator-hover-zone
Nov 12, 2026
Merged

dhh merged 2 commits into
quattrofrom
worktree-indicator-hover-zone

Conversation

@dhh

@dhh dhh commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Hovering anywhere on the bar left of the clock (workspaces, empty bar) used to peek the inactive indicators. Now only hovering where they would appear does.

  • The indicators widget carries an invisible hover zone the size of its hidden icons, on the side they grow toward (just left of the active icons in the default centerBegin placement). It takes no room in the bar.
  • Once revealed, the zone keeps half that reach past the shown icons. In the centered box the widget slides half its growth back the other way as the box re-centers, so a zone that stopped at the widget's edge would lose the pointer that opened it and flicker open/closed.
  • Reveal is held for 120ms after the pointer leaves, so crossing between icons or a frame where the widget moves under a still pointer doesn't flicker.
  • In the tray's drawer the indicators show outright. An idle widget there takes no room, so its hover zone would be clipped away, and the drawer already hides them until hovered. The bar now tells widgets whether they sit in the drawer (inTraySection on BarWidget).
  • The bar-wide peek existed only for the indicators, so it's removed: setBarHovered/barHoverCount, peekEdge/syncPeekEdge, BarModel.peeksAt/nextPeekEdge, and the clock and weather panels' setCenterHoverRevealSuppressed (which kept the peek shut behind a hotkey-opened panel).
  • Third-party plugin API: centerSectionRevealHeld, centerHoverRevealSuppressed and setCenterHoverRevealSuppressed are gone from PluginBarApi. A plugin still reading them sees nothing revealed.
  • The manual's top-bar page now says to hover beside the indicators rather than anywhere on the bar.

Verification

  • test/shell.d/indicator-contract-test.sh and test/shell.d/bar-test.sh pass.
  • The indicator contract fixture now drives the reveal through the widget's own hover, and gains one check: before revealing, the hover zone (measured from the widget's fixed edge) must already cover where a hidden icon then appears, for start/end edges on horizontal and vertical bars. A second check covers an idle widget in the tray's drawer showing its icons without a hover; it reads got width 0 without the fix. Zeroing the zone's reach makes it fail in all four cases (zone 0-21, icon 21-42 from the fixed edge).
  • Ran this branch's shell on a live desktop: the bar renders as before at rest, with no QML warnings from the changed files.
  • Not verified by script: driving hover. hl.dsp.cursor.move warps didn't trigger any bar hover in that session (no tooltips either), so the reveal itself still needs a check with a real pointer.

Screenshots

No visible change: the bar renders the same at rest; only where hovering reveals the hidden indicators changes.

🤖 Generated with Claude Code

Hovering anywhere on the bar left of the clock used to peek the inactive
indicators. Now only the spot where they would appear does: the widget
carries an invisible hover zone the size of its hidden icons, on the side
they grow toward. The bar-wide peek and its plumbing are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous tray drawer problem is fixed.

Summary

The PR limits indicator reveal to the widget’s own hover area and removes the old bar-wide reveal state.

  • Inactive indicators reveal when you hover where they sit.
  • Third-party widgets no longer receive controls for the bar-wide reveal.

Reviews (2) · Last reviewed commit: "Show indicators outright in the tray's d..." · Reviewed by Greptile

There an idle widget with its icons hidden takes no room, so its hover
zone is clipped away and nothing could reveal them. The drawer already
hides them until hovered, so the bar now tells widgets they sit in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit c149add into quattro Nov 12, 2026
3 checks passed
@dhh
dhh deleted the worktree-indicator-hover-zone branch November 12, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant