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)),