Skip to content

Send quit_requested event when application is closed via CMD+Q on macOS#604

Merged
not-fl3 merged 1 commit intonot-fl3:masterfrom
Pewnack:application_should_terminate
Mar 14, 2026
Merged

Send quit_requested event when application is closed via CMD+Q on macOS#604
not-fl3 merged 1 commit intonot-fl3:masterfrom
Pewnack:application_should_terminate

Conversation

@Pewnack
Copy link
Copy Markdown
Contributor

@Pewnack Pewnack commented Mar 14, 2026

On macOS CMD+Q doesn't trigger the quit_requested event, so is_quit_requested is not set when closing the application via the app menu or CMD+Q. An issue was also opened for this on the macroquad repository: https://github.com/not-fl3/macroquad/issues/998

This is an attempt to fix it. Tested in on macOS Tahoe (26.3.1) and the older macOS Monterey (12.7.6)

@not-fl3
Copy link
Copy Markdown
Owner

not-fl3 commented Mar 14, 2026

Thanks for PR!

@not-fl3 not-fl3 merged commit 3d6eb64 into not-fl3:master Mar 14, 2026
11 checks passed
@Pewnack Pewnack deleted the application_should_terminate branch March 14, 2026 16:11
@Pewnack
Copy link
Copy Markdown
Contributor Author

Pewnack commented Mar 15, 2026

Thanks for merging!

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