Skip to content

macOS: Fix emitting Event::LoopDestroyed on CMD+Q / pressing Quit in the menu bar#2221

Closed
madsmtm wants to merge 2 commits into
rust-windowing:masterfrom
madsmtm:macos-cleanup-quit
Closed

macOS: Fix emitting Event::LoopDestroyed on CMD+Q / pressing Quit in the menu bar#2221
madsmtm wants to merge 2 commits into
rust-windowing:masterfrom
madsmtm:macos-cleanup-quit

Conversation

@madsmtm
Copy link
Copy Markdown
Member

@madsmtm madsmtm commented Mar 21, 2022

Fixes #1998

Alternatively we could do #2073 - we might still want to do that, since it makes our cleanup more robust, but I think there is merit in using stop: over terminate:, since it would allow applications using run_return to continue running.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@madsmtm madsmtm added B - bug Dang, that shouldn't have happened DS - appkit Affects the AppKit/macOS backend C - waiting on maintainer A maintainer must review this code labels Mar 21, 2022
@kchibisov kchibisov added this to the Version 0.27 milestone Apr 11, 2022
@tinaun
Copy link
Copy Markdown
Contributor

tinaun commented May 6, 2022

I don't know of any macOS apps where using cmd-q or [App] -> Quit doesn't terminate the entire program, however

@madsmtm
Copy link
Copy Markdown
Member Author

madsmtm commented Jun 9, 2022

I don't know of any macOS apps where using cmd-q or [App] -> Quit doesn't terminate the entire program, however

Yeah, you're right, we'll go with your PR

@madsmtm madsmtm closed this Jun 9, 2022
@madsmtm madsmtm deleted the macos-cleanup-quit branch June 10, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B - bug Dang, that shouldn't have happened C - waiting on maintainer A maintainer must review this code DS - appkit Affects the AppKit/macOS backend

Development

Successfully merging this pull request may close these issues.

Event::LoopDestroyed not always emmited

3 participants