From e85a80dd65945bebc22c19736b92713ffc20c06d Mon Sep 17 00:00:00 2001 From: Imberflur <2002109+Imberflur@users.noreply.github.com> Date: Sun, 8 Mar 2020 01:22:53 -0500 Subject: [PATCH] Fix freeze when pressing modifier keys on Windows (#1503) --- src/platform_impl/windows/event_loop.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform_impl/windows/event_loop.rs b/src/platform_impl/windows/event_loop.rs index 5f632c3b..e5a4d4fc 100644 --- a/src/platform_impl/windows/event_loop.rs +++ b/src/platform_impl/windows/event_loop.rs @@ -610,6 +610,9 @@ fn update_modifiers(window: HWND, subclass_input: &SubclassInput) { if window_state.modifiers_state != modifiers { window_state.modifiers_state = modifiers; + // Drop lock + drop(window_state); + unsafe { subclass_input.send_event(Event::WindowEvent { window_id: RootWindowId(WindowId(window)),