From 695547f4ca6ab6dc032ccce1a9fed2baa10e0c01 Mon Sep 17 00:00:00 2001
From: Aleksi Juvani <3168386+aleksijuvani@users.noreply.github.com>
Date: Wed, 18 Sep 2019 05:49:29 +0300
Subject: [PATCH] Fix events not being emitted during modal loops on macOS
(#1173)
---
CHANGELOG.md | 2 ++
src/platform_impl/macos/app_state.rs | 23 ----------------------
src/platform_impl/macos/observer.rs | 3 +--
src/platform_impl/macos/window_delegate.rs | 6 +-----
4 files changed, 4 insertions(+), 30 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1fad9364..bfba47c3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@
- On Windows, fix handling of surrogate pairs when dispatching `ReceivedCharacter`.
- On macOS 10.15, fix freeze upon exiting exclusive fullscreen mode.
- On iOS, fix null window on initial `HiDpiFactorChanged` event.
+- On macOS, fix events not being emitted during modal loops, such as when windows are being resized
+ by the user.
- On Windows, fix hovering the mouse over the active window creating an endless stream of CursorMoved events.
# 0.20.0 Alpha 3 (2019-08-14)
diff --git a/src/platform_impl/macos/app_state.rs b/src/platform_impl/macos/app_state.rs
index 4a18ed83..d063fe84 100644
--- a/src/platform_impl/macos/app_state.rs
+++ b/src/platform_impl/macos/app_state.rs
@@ -84,7 +84,6 @@ struct Handler {
start_time: Mutex