Repository navigation
fix(island): close a focused island with one outside click - #3792
Merged
Merged
Conversation
On Hyprland, an island holding keyboard focus runs a focus grab that only whitelisted the bar window. The full-screen dismiss layer wasn't on the list, so the first click outside only ended the grab and the card needed a second click to close. That hit every card that takes keyboard focus (weather right away, media after a click inside). Add the dismiss layer to the grab, the way DPopout whitelists its background window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the island needing two clicks outside to close on Hyprland.
When an island card holds keyboard focus (weather right away, media after clicking inside it, anything opened by click), the island runs a Hyprland focus grab. The grab only listed the bar window, not the full-screen dismiss layer, so the first click outside just ended the grab and Hyprland swallowed it. Only the second click reached the dismiss layer and closed the card. Whether the first click got through also depended on where it landed (an unfocused window worked, the focused window didn't), which made it feel random.
The dismiss layer is now part of the grab, the same way
DPopoutwhitelists its background window. The free-placement island already did this throughextraWindows; the island in the bar now gets it through its host.Type of change
Related issues
None.
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 warningsTested by hand on Hyprland with the island in the bar: weather and media cards now close with one outside click, whether or not I clicked inside first. No new strings, no docs needed. All pre-commit hooks passed; I didn't run
make lint-qmlfor this one.