MixinNetwork / MixinNetwork/flutter-plugins

[desktop-multi-window] Delay to quit a flutter app on Windows

Open
#465 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
512
Forks
292
Avg merge
15h 8m
Merged PRs (30d)
7

Description

I have an example project that uses desktop_multi_window to main three windows, one main and two others. When I click the close box of the main window it sends PostQuitMessage to quit the whole app. This works, but instead of being instantaneous, it takes about 10.5 seconds.

The issues is specific to Windows (11). On Mac Intel Sequoia, the problem is not present.

Reproduce Steps

The example project is at https://github.com/mauricev/flutter_windows_multi_engine_delay_bug

Expected behavior

The app should quit immediately

Version (please complete the following information):

  • Flutter Version: [3.42.0-1.0.pre-290]
  • OS: [(Windows 11 or higher, 25H2, 2009]
  • plugin: [desktop-multi-window: 0.3.0]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked example project and reproduce the delay on Windows 11 using desktop_multi_window 0.3.0. Trace the Windows close path where PostQuitMessage is sent, comparing it with the reported working behavior on macOS. Done means the example exits immediately when the main window is closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.