mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Drop the event callback before exiting on macOS (#1954)
* Drop the event callback before exiting * Update the changelog * Apply suggestion from review Co-authored-by: Markus Røyset <maroider@protonmail.com> * Apply review suggestions Co-authored-by: Markus Røyset <maroider@protonmail.com>
This commit is contained in:
parent
c916eb6137
commit
c7f46876a7
|
@ -1,5 +1,6 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On macOS, drop the event callback before exiting.
|
||||||
- On Android, implement `Window::request_redraw`
|
- On Android, implement `Window::request_redraw`
|
||||||
- **Breaking:** On Web, remove the `stdweb` backend.
|
- **Breaking:** On Web, remove the `stdweb` backend.
|
||||||
- Added `Window::focus_window`to bring the window to the front and set input focus.
|
- Added `Window::focus_window`to bring the window to the front and set input focus.
|
||||||
|
|
|
@ -174,10 +174,12 @@ impl<T> EventLoop<T> {
|
||||||
let () = msg_send![app, run];
|
let () = msg_send![app, run];
|
||||||
|
|
||||||
if let Some(panic) = self.panic_info.take() {
|
if let Some(panic) = self.panic_info.take() {
|
||||||
|
drop(self._callback.take());
|
||||||
resume_unwind(panic);
|
resume_unwind(panic);
|
||||||
}
|
}
|
||||||
AppState::exit();
|
AppState::exit();
|
||||||
});
|
});
|
||||||
|
drop(self._callback.take());
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn create_proxy(&self) -> Proxy<T> {
|
pub fn create_proxy(&self) -> Proxy<T> {
|
||||||
|
|
Loading…
Reference in a new issue