macOS: Drop the closure on exit. (Fixes #1058) (#1063)

This commit is contained in:
Tilman Schmidt 2019-07-23 21:44:07 +01:00 committed by Hal Gentz
parent b547531499
commit 5a206de620
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
# Unreleased
- On macOS, drop the run closure on exit.
- On Windows, location of `WindowEvent::Touch` are window client coordinates instead of screen coordinates.
- On X11, fix delayed events after window redraw.

View file

@ -196,6 +196,7 @@ impl AppState {
HANDLER.set_in_callback(true);
HANDLER.handle_nonuser_event(Event::LoopDestroyed);
HANDLER.set_in_callback(false);
HANDLER.callback.lock().unwrap().take();
}
pub fn launched() {