Skip to content

Stop a closing popup card from taking clicks - #15111

Merged
dhh merged 1 commit into
quattrofrom
fix/issue-10030
Oct 25, 2026
Merged

dhh merged 1 commit into
quattrofrom
fix/issue-10030

Conversation

@omarchybot

@omarchybot omarchybot commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

A PopupCard stays mapped while it fades out (visible: open || card.opacity > 0), and until now it took pointer input for that whole time. Its focus grab ends the moment it closes, so nothing dismisses it either: a click on the desktop goes nowhere near it.

That matters for the tray menu. When an app quits from its own tray menu and it was the only tray icon, the menu's anchor falls back to the tray, which has collapsed to 0×0. The card is then placed margin below the top of the bar window, so it lies on the bar over the widgets to the right of the tray, with a 5px strip above it left uncovered. Normally that lasts 140ms. If the fade does not finish, those widgets stop taking hover, left-click and right-click until the bar is rebuilt, while the strip at the very top of the screen still works.

This gives the card an empty input region once it is closed (mask: Region { item: root.open ? card : null }). While open, the region is the card, which fills the window and follows its resizes, so open menus behave as before, and reopening during the fade restores input at once. The fade itself is unchanged.

On a worker built from the Omarchy ISO, with a stand-in tray app pinned as the only tray icon and the fade held open for 60s to stand in for one that never finishes: on quattro, after Quit from its menu, right-clicking Audio did nothing, clicking the desktop did not help, and the top few pixels of the bar still worked, as #10030 describes. With this change, Audio muted on right-click and opened its panel on left-click during the same fade. Why the fade would stop short on the reporter's NVIDIA machine is not established, so this refers to #10030 rather than closing it until the reporter has tested it.

Codex at medium effort reviewed the change separately and found nothing to change. It confirmed from Quickshell's Region implementation that a region with no item and no size is empty, and that an item region follows the item's resizes.

Refs #10030

Fixes #10030

Fixes #10310

A PopupCard stays mapped while it fades out, and until now it took input the whole time. When a tray app quits from its own menu and was the only tray icon, the menu's anchor collapses to the empty tray and the fading card sits on the bar, over the widgets beside the tray. With its focus grab already released, a desktop click does not dismiss it, so if the fade does not finish those widgets stay dead until the bar is rebuilt.

Give the card an empty input region once it is closed, so it only ever takes input while open.

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

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The change appears safe to merge; no actionable issues were found.

Summary

PopupCard now accepts pointer input only while open is true.

  • Closed popup cards stop blocking clicks while they fade.

Reviews (1) · Last reviewed commit: "Stop a closing popup card from taking cl..." · Reviewed by Greptile

@jandrusk

Copy link
Copy Markdown

Good catch on the fade-out click-through. #15114 is the sibling fix for the anchor-loss case (tray icon gone mid-fade) on the same PopupCard.qml — please either rebase onto each other or fold both into one PR so we don't thrash that file twice.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator Author

Reproduced on current quattro without stretching the fade, and fixed by this change.

On a worker built from the Omarchy ISO with animations on, a stand-in tray app was pinned as the only tray icon, its menu was opened from the bar and Quit chosen, and the app dropped its icon 80–130ms later. Each trial started from a fresh shell, checked that Audio responded first, then right-clicked Audio after the quit:

./test/cli and the bar and tray tests in test/shell.d (tray, tray-menu, bar, bar-click-clipping, bar-drag, bar-icon-geometry, bar-notch, button-border-stability, keyboard-panel-lazy, pointer-move-gate) pass on the worker with the change on current quattro. It applies there cleanly, so the branch needs no update.

The description says the bug was reproduced only with a 60-second fade and that the reason for a stalled fade was not established. That no longer holds: it happens at normal speed, so this now links #10030 and #10310 as fixed by it.

#15114 fixes the same thing differently: it stops a closing card being shown again when its anchor leaves the window, where this one makes a closed card ignore input however it ended up on screen. Either fixes this bug and neither needs the other, so this one, the older, is the one marked ready. Which to take is the maintainer's call.

Codex at medium effort reviewed this separately twice: once comparing it with #15114 without my conclusion, and once reviewing it against the results above. Both times it found nothing to change, and it confirmed from Quickshell's source that a Region whose item is null leaves an empty input region rather than removing the mask. It can read this session's working notes, so its agreement is not guaranteed to be independent.

This waits on the maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

4 participants