mirror of
https://github.com/storytold/winit.git
synced 2026-11-24 13:20:44 +01:00
Correct event type
KeymapNotify should not be handled by calling XRefreshKeyboardMapping. XRefreshKeyboardMapping expects XMappingEvent.
This commit is contained in:
1 parent
4605979c9e
commit
5392ba0db0
1 file changed
+1
-1
@@ -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