Skip to content

island: close hover popouts when the pointer moves onto the island - #4346

Merged
bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:island-hover-closes-popouts
Nov 20, 2026
Merged

bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:island-hover-closes-popouts

Conversation

@Conava

@Conava Conava commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Description

A popout opened by hovering a bar widget stayed open when the pointer moved on to the island, so it covered the island once that opened. And both the widget and the island closed once the mouse left the widget.
Now the widget popout closes as soon as the pointer is on the island, the same way it closes when the pointer leaves the bar anywhere else.

Popouts opened with a click stay open as before since this was a recent change made for this exact purpose as far as I could tell.

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

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

A popout opened by hovering a bar widget stayed open when the pointer
moved on to the island, so it covered the island once that opened,
whether by hover or by click.

The bar's hover tracking decides whether to close a hover popout from
the last pointer position it saw, and it stops seeing the pointer once
the island's own mouse areas take it. That last position is still on
the bar: either on the widget that opened the popout, or inside the
popout's 24 px hover margin, which can reach over the island. Either
way the bar concluded the pointer was still on its hover chain and
kept the popout, and nothing rechecked it afterwards.

The island now reports the pointer arriving on it: after the same
debounce the bar uses, it asks its bar to close its hover surfaces
through the bar's own close path, so the bar's hover state is reset
too. A free island has no bar and dismisses the screen's hover popout
and hover tray menus directly. Surfaces opened with a click stay open.
@Conava
Conava marked this pull request as ready for review November 20, 2026 11:46
@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: the pointerInside handler and debounce timer in IslandBarHost (it only restarts on entry, so no idle cost), that dismissHoverSurfaces reaches DBarHoverController and respects pinned and click-opened popouts (hoverDismissEnabled and suspend guards), the DBarBody typing against the barWindow passed by DBarBody.qml, the existing qs.Modules.DBar import, the free-island fallback path, and the Timing.debounce token. Model: claude-opus-5-5.

@purian23 purian23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Conava!

  1. Instead of a new Timer, could the hover controller handle this? A flag that makes _commitHoverClose() skip the stale-point checks, then restart the existing _hoverCloseTimer.
  2. Let's drop the barBody == null fallback. It ignores pinned popouts and closes hover tray menus on every screen.

Address review feedback: instead of its own timer, the island now only
tells the bar's hover controller that the pointer moved onto it. The
controller restarts its existing close timer, and when that fires it
skips the checks that read the stale last bar point, unless the popout
reported a newer pointer position in the meantime (the pointer moved on
into the popout, which keeps it open). Pinned surfaces still win, and
an island entry while the bar has nothing open schedules nothing.

The fallback for a free island is gone: it bypassed the bar's pinned
checks and closed hover tray menus on every screen.
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: both of purian23's requests are in (the separate Timer is gone and _commitHoverClose() now restarts _hoverCloseTimer with a _pointerOnIsland flag; the barBody == null fallback was dropped, so the free island no-ops through ?.), pinned and click-opened popouts stay open (pinned guard, and hasOpenHoverSurface() is false with no hover trigger), the flag is reset on bar re-entry, new points, geometry reset and hover-popouts disable, pointerInside fires only on change so it costs nothing at idle, and the DBarBody typing matches the barWindow root passed from DBarBody.qml through the existing qs.Modules.DBar import. Model: claude-opus-5-5.

@Conava
Conava requested a review from purian23 November 20, 2026 16:35
@bbedward
bbedward merged commit e8438de into duxlabs-dev:master Nov 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants