mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Emit suspended on shutdown
This commit is contained in:
@@ -193,6 +193,7 @@ impl ApplicationDelegate {
|
|||||||
/// NOTE: that if the `NSApplication` has been launched then that state is preserved,
|
/// NOTE: that if the `NSApplication` has been launched then that state is preserved,
|
||||||
/// and we won't need to re-launch the app if subsequent EventLoops are run.
|
/// and we won't need to re-launch the app if subsequent EventLoops are run.
|
||||||
pub fn internal_exit(&self) {
|
pub fn internal_exit(&self) {
|
||||||
|
self.handle_event(Event::Suspended);
|
||||||
self.handle_event(Event::LoopExiting);
|
self.handle_event(Event::LoopExiting);
|
||||||
|
|
||||||
self.set_is_running(false);
|
self.set_is_running(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user