Files
LLeMbas-TTY/window/src
Wez Furlong 5da0ef4c12 macos: fixup application termination
The recently added app delegate was telling cocoa that we'd decide
to quit later in response to termination requests, blocking
shutdown/logout/restart.

This commit introduces a macos native modal alert to let the user
decide whether to quit or not.

While testing this, I noticed that in some cases, our internal choice
to quit had no effect.  Reading the fine print of NSApp::stop, it sounds
like calling it from a modal context will only stop a modal rather then
exit out of NSApp::run, so we explicitly bounce through an event
callback to try to make it exit from the right place.

I'm not 100% convinced by this.  I've left some debug prints in for
now to see if those give some insight in the future.

refs: https://github.com/wez/wezterm/issues/2944
2023-01-12 16:49:19 -07:00
..
2023-01-12 16:49:19 -07:00
2021-12-10 08:18:36 -07:00
2022-12-21 07:04:51 -07:00
2022-08-19 21:02:51 -07:00
2022-05-04 20:16:41 -07:00