diff --git a/src/platform/linux/x11/mod.rs b/src/platform/linux/x11/mod.rs index c21f6203..7fbccda8 100644 --- a/src/platform/linux/x11/mod.rs +++ b/src/platform/linux/x11/mod.rs @@ -234,7 +234,7 @@ impl EventsLoop { let mut ev_mods = ModifiersState::default(); - let mut keysym = unsafe { + let keysym = unsafe { (self.display.xlib.XKeycodeToKeysym)(self.display.display, xkev.keycode as ffi::KeyCode, 0) };