sokol_app.h macos: quit menu#817
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.