Skip to content

Commit

Permalink
Fix #273 (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
mad-s authored and tomaka committed Sep 21, 2017
1 parent f81a074 commit 52a78d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/linux/x11/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52a78d6

Please sign in to comment.