Repository navigation
Stop a closing popup card from taking clicks - #15111
Conversation
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>
|
|
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 |
|
Reproduced on current 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:
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 This waits on the maintainer. |
A
PopupCardstays 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
marginbelow 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
Regionimplementation 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