mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Correct event type
KeymapNotify should not be handled by calling XRefreshKeyboardMapping. XRefreshKeyboardMapping expects XMappingEvent.
This commit is contained in:
@@ -186,7 +186,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
match xev.get_type() {
|
match xev.get_type() {
|
||||||
ffi::KeymapNotify => {
|
ffi::MappingNotify => {
|
||||||
unsafe { (xlib.XRefreshKeyboardMapping)(mem::transmute(&xev)); }
|
unsafe { (xlib.XRefreshKeyboardMapping)(mem::transmute(&xev)); }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user