aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariusz Ceier <mceier@gmail.com>2015-08-28 11:23:44 +0200
committerMariusz Ceier <mceier@gmail.com>2015-08-28 11:23:44 +0200
commit5392ba0db02ef9d3c3e0045fc2679582eb7644ce (patch)
tree8dfecd9ddc7e5bc0508dfc2bd240ade1ba98daa4
parent4605979c9e7e9ec92c2156fe1d04ca6a6846016a (diff)
downloadglutin-5392ba0db02ef9d3c3e0045fc2679582eb7644ce.tar.gz
glutin-5392ba0db02ef9d3c3e0045fc2679582eb7644ce.zip
Correct event type
KeymapNotify should not be handled by calling XRefreshKeyboardMapping. XRefreshKeyboardMapping expects XMappingEvent.
-rw-r--r--src/api/x11/window.rs2
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)); }
},