-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sokol_app.h macos: quit menu #817
base: master
Are you sure you want to change the base?
Conversation
Hi, there's a couple of similar PRs and issues already, the main reason why I haven't merged any of them yet is that they all suffer from one or another problem (for instance the 'Quit' being hardcoded, so it won't be properly localized. I would prefer a solution which allows the menu to be configured from the outside. Until then it's probably better to do the menu setup outside of sokol_app.h |
Right now there's no way to quit a Sokol app on macos, so I think it's a good temporary fix, that takes care of this pretty big limitation. Later, when the menu situation is figured out, it can be replaced/updated. |
You can quit the application programmatically, either "hard" or "soft" (where the application has a chance to show a "Really Quit?" dialog). See here: Lines 733 to 807 in 7373dda
|
Yeah, I have a full screen app, so not an option there. There's no window frame. |
Right now there's no way to quit a Sokol application on macOS.
This adds a quit menu and a cmd+q shortcut.