Correct event type

KeymapNotify should not be handled by calling XRefreshKeyboardMapping.

XRefreshKeyboardMapping expects XMappingEvent.
This commit is contained in:
Mariusz Ceier 2015-08-28 11:23:44 +02:00
parent 4605979c9e
commit 5392ba0db0

View file

@ -186,7 +186,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
}
match xev.get_type() {
ffi::KeymapNotify => {
ffi::MappingNotify => {
unsafe { (xlib.XRefreshKeyboardMapping)(mem::transmute(&xev)); }
},