mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Fix panic upon closing the app on iOS (#1168)
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
- Officially remove the Emscripten backend.
|
- Officially remove the Emscripten backend.
|
||||||
- On Windows, fix handling of surrogate pairs when dispatching `ReceivedCharacter`.
|
- On Windows, fix handling of surrogate pairs when dispatching `ReceivedCharacter`.
|
||||||
- On macOS 10.15, fix freeze upon exiting exclusive fullscreen mode.
|
- On macOS 10.15, fix freeze upon exiting exclusive fullscreen mode.
|
||||||
|
- On iOS, fix panic upon closing the app.
|
||||||
- On X11, allow setting mulitple `XWindowType`s.
|
- On X11, allow setting mulitple `XWindowType`s.
|
||||||
- On iOS, fix null window on initial `HiDpiFactorChanged` event.
|
- On iOS, fix null window on initial `HiDpiFactorChanged` event.
|
||||||
- On Windows, fix fullscreen window shrinking upon getting restored to a normal window.
|
- On Windows, fix fullscreen window shrinking upon getting restored to a normal window.
|
||||||
|
|||||||
@@ -462,7 +462,7 @@ impl AppState {
|
|||||||
|
|
||||||
fn terminated_transition(&mut self) -> Box<dyn EventHandler> {
|
fn terminated_transition(&mut self) -> Box<dyn EventHandler> {
|
||||||
match self.replace_state(AppStateImpl::Terminated) {
|
match self.replace_state(AppStateImpl::Terminated) {
|
||||||
AppStateImpl::ProcessingRedraws { event_handler, .. } => event_handler,
|
AppStateImpl::ProcessingEvents { event_handler, .. } => event_handler,
|
||||||
s => bug!(
|
s => bug!(
|
||||||
"`LoopDestroyed` happened while not processing events {:?}",
|
"`LoopDestroyed` happened while not processing events {:?}",
|
||||||
s
|
s
|
||||||
|
|||||||
Reference in New Issue
Block a user