Skip to content

fix(island): close a focused island with one outside click - #3792

Merged
purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:island-dismiss-grab
Oct 15, 2026
Merged

purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:island-dismiss-grab

Conversation

@Conava

@Conava Conava commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

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 DPopout whitelists its background window. The free-placement island already did this through extraWindows; the island in the bar now gets it through its host.

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

None.

Screenshots / video

Checklist

Tested 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-qml for this one.

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.
@purian23
purian23 merged commit 8795334 into duxlabs-dev:master Oct 15, 2026
2 checks passed
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.

2 participants