This commit is contained in:
Matteo Signer authored and tomaka committed 2017-09-21 16:09:07 +02:00
1 parent f81a0741f5
commit 52a78d61bf
1 file changed
+3 -1
+3 -1
View File
@@ -278,7 +278,9 @@ impl EventsLoop {
};
let keysym = unsafe {
(self.display.xlib.XKeycodeToKeysym)(self.display.display, xkev.keycode as ffi::KeyCode, 0)
let mut keysym = 0;
(self.display.xlib.XLookupString)(xkev, ptr::null_mut(), 0, &mut keysym, ptr::null_mut());
keysym
};
let vkey = events::keysym_to_element(keysym as libc::c_uint);