Skip to content

Fix run_return in MacOS#1321

Merged
vbogaevsky merged 4 commits into
rust-windowing:masterfrom
hatoo:fix-macos-run_return
Dec 19, 2019
Merged

Fix run_return in MacOS#1321
vbogaevsky merged 4 commits into
rust-windowing:masterfrom
hatoo:fix-macos-run_return

Conversation

@hatoo
Copy link
Copy Markdown
Contributor

@hatoo hatoo commented Dec 17, 2019

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • 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

This PR fixes #1242 while keeping #1117 fixed.

According to https://stackoverflow.com/questions/48041279/stopping-the-nsapplication-main-event-loop a UI event must be happening to stop event loop actually.

So I chose to modify the main window's title to activate stop.

@goddessfreya goddessfreya added DS - appkit Affects the AppKit/macOS backend C - waiting on maintainer A maintainer must review this code labels Dec 17, 2019
@goddessfreya
Copy link
Copy Markdown
Contributor

r? @aleksijuvani or @vbogaevsky

@hatoo hatoo force-pushed the fix-macos-run_return branch from d221d2d to 98a5542 Compare December 18, 2019 14:09
@vbogaevsky vbogaevsky merged commit 01203b2 into rust-windowing:master Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

macOS: run_return terminates an app instead of continuing past return

3 participants