Skip to content

Commit e85a80d

Browse files
authored
Fix freeze when pressing modifier keys on Windows (#1503)
1 parent b1d8ce2 commit e85a80d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform_impl/windows/event_loop.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,9 @@ fn update_modifiers<T>(window: HWND, subclass_input: &SubclassInput<T>) {
610610
if window_state.modifiers_state != modifiers {
611611
window_state.modifiers_state = modifiers;
612612

613+
// Drop lock
614+
drop(window_state);
615+
613616
unsafe {
614617
subclass_input.send_event(Event::WindowEvent {
615618
window_id: RootWindowId(WindowId(window)),

0 commit comments

Comments
 (0)