Skip to content

fix(notifications): close popups when their screen stops showing them - #3844

Merged
purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:notification-popup-cleanup
Oct 21, 2026
Merged

purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:notification-popup-cleanup

Conversation

@Conava

@Conava Conava commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes a notification popup getting stuck on screen when the island takes over notifications while the popup is showing. That happens when "Use standard popups" is turned off in the island settings, or when the island gets enabled or a config change does either, while a notification is up. The popup stayed and couldn't be dismissed anymore.

Each screen showing popups has its own popup manager, and that manager gets removed when the island takes over. The popups are separate windows though, so they stayed around but the buttons or timers to close them were not functional anymore. Now the manager closes its popups when it's removed, and the notification moves over to the island as expected.

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 dlx-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

Each screen that shows notification popups gets its own popup manager.
When the island takes over a screen's notifications (island enabled,
"Use standard popups" turned off, or a config change doing either),
that manager is destroyed. Its popups are unparented windows, so they
stayed on screen, and their exit handling was gone with the manager, so
they could no longer be dismissed.

Destroy the manager's popups and release its connected-frame surface
claim when it is destroyed. The notification then shows in the island.
@purian23
purian23 merged commit b819544 into duxlabs-dev:master Oct 21, 2026
2 checks passed
bbedward pushed a commit that referenced this pull request Oct 21, 2026
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