Closed glycerine closed 3 years ago
The event to respond to for manual resource cleanup should be event.OnStop
(https://github.com/oakmound/oak/blob/master/event/strings.go#L33).
But the window should close regardless. Let me know if this isn't getting triggered, I can look into it in the internals to see if there's a bug there.
Thanks Patrick! I'll try that. For me, on x11, clicking the close window button currently has no effect at all.
I somehow missed the last comment on this issue, and will be looking into this shortly.
On my usual box (cinnamon) the x button does close the window, I'll get a kubuntu image and test that out.
Failed to replicate on kubuntu as well. What I did:
go get github.com/oakmound/oak/v3@latest
Again, sorry for taking so long for getting to this. Screenshot of the kubuntu version I used:
so might be a kubuntu version thing. thanks for letting me know.
Scratch that, I actually replicated this on mint, looking into supporting multi-window on linux. We never called Release
on windows when they were manually closed.
I never saw it in my previous testing because the program would always exit after oak.Init
exited.
Just wondering how my app can respond to the user clicking the close window X button (kubuntu 18.04) in the outermost window corner. On OSX the window shuts down automatically, but not in x11. I couldn't locate a message or callback to handle this. Can someone point it out?