From 455ea89fa825ea8c0ffb3ff231777ab4b7bc2d51 Mon Sep 17 00:00:00 2001 From: Greg V Date: Wed, 8 Sep 2021 19:07:34 +0300 Subject: [PATCH] window: unbreak bypass_mouse_reporting_modifiers on Wayland (fixes #1122) Modifier state was not saved to the `modifiers` field that's read when converting mouse events, so these events always had no modifiers. --- window/src/os/wayland/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/window/src/os/wayland/window.rs b/window/src/os/wayland/window.rs index b38c94320..0b32317bb 100644 --- a/window/src/os/wayland/window.rs +++ b/window/src/os/wayland/window.rs @@ -396,6 +396,7 @@ impl WaylandWindowInner { .. } => { mapper.update_modifier_state(mods_depressed, mods_latched, mods_locked, group); + self.modifiers = mapper.get_key_modifiers(); } _ => {} }