DioxusLabs / DioxusLabs/dioxus

Multi window example should include example of how to bubble the close event on the main window to all children windows.

Open
#701 2 comments 0 reactions 0 assignees View on GitHub
desktop
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Specific Demand

This is required because in certain circumstances you may launch a headless window (as seen in the overlay example) as a popup window. Closing the main window will actually do nothing on MacOS specifically if a headless window still exists from the same process.

## Implement Suggestion

Not quite sure on the exact fix but I assume simply calling close on all open windows prior to emitting the actual close event would be adequate.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the multi-window and overlay examples and reading how they create and close headless or popup windows. Confirm the behavior on macOS, then make the example demonstrate closing child windows when the main window closes; done means no child window remains open after the main window's close event.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.