lv2 / pugl

A minimal portable API for embeddable GUIs
https://gitlab.com/lv2/pugl/
ISC License
174 stars 34 forks source link

MacOS: Quit via menubar does nothing (no close event or event loop stop) #116

Open falkTX opened 10 months ago

falkTX commented 10 months ago

As per title, when running a pugl application in macOS, the menubar App "Quit" action does nothing. Weirdly the Cmd+Q keyboard combo works :shrug:

I expected the menubar action to at least generate a close event, but does not seem to be the case.

Are we expected to setup some menubar integration for this to work in the first place? Windows has no such concept, but Linux has a menubar-like thing over DBus. Being able to integrate with these would be cool, but I guess outside of the scope of pugl.

drobilla commented 10 months ago

No idea. Generally you're going to have to do some MacOS specific work to make an actually decent MacOS application with a menu and such, but maybe this one is just an event that needs to be handled or something.

(I'd assume that, like most things, it won't work unless the program is in a proper application bundle, but it doesn't now regardless)