diff options
author | Mariusz Ceier <mceier@gmail.com> | 2015-08-28 11:23:44 +0200 |
---|---|---|
committer | Mariusz Ceier <mceier@gmail.com> | 2015-08-28 11:23:44 +0200 |
commit | 5392ba0db02ef9d3c3e0045fc2679582eb7644ce (patch) | |
tree | 8dfecd9ddc7e5bc0508dfc2bd240ade1ba98daa4 /src/api/x11 | |
parent | 4605979c9e7e9ec92c2156fe1d04ca6a6846016a (diff) | |
download | glutin-5392ba0db02ef9d3c3e0045fc2679582eb7644ce.tar.gz glutin-5392ba0db02ef9d3c3e0045fc2679582eb7644ce.zip |
Correct event type
KeymapNotify should not be handled by calling XRefreshKeyboardMapping.
XRefreshKeyboardMapping expects XMappingEvent.
Diffstat (limited to 'src/api/x11')
-rw-r--r-- | src/api/x11/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 36b60e4..5bfbda9 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -186,7 +186,7 @@ impl<'a> Iterator for PollEventsIterator<'a> { } match xev.get_type() { - ffi::KeymapNotify => { + ffi::MappingNotify => { unsafe { (xlib.XRefreshKeyboardMapping)(mem::transmute(&xev)); } }, |