Commit graph

2 commits

Author SHA1 Message Date
Jonathan Johnson
8f49442f28
Window panics are now handled
Prior to this commit, if a window panic happened, the window would be
left on the screen frozen. Now, the panic is caught and the window is
closed before resuming the panic.

The app event loop has a separate message it receives when a window
panics, and if it's the last window, the process exits with a non-zero
exit code.

This places the burden of handling a panicking window into the
developer's hands: ultimately if the window has a way to communicate
with it, the behavior is being dropped as part of the panic handling,
which ensures any channels the window had will be dropped too.
2023-07-03 08:38:38 -07:00
Jonathan Johnson
3f099070c2
Initial commit. 2023-06-27 09:21:38 -07:00