mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -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() {
|
||||
ffi::KeymapNotify => {
|
||||
ffi::MappingNotify => {
|
||||
unsafe { (xlib.XRefreshKeyboardMapping)(mem::transmute(&xev)); }
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user