mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +11:00
Correct event type
KeymapNotify should not be handled by calling XRefreshKeyboardMapping. XRefreshKeyboardMapping expects XMappingEvent.
This commit is contained in:
parent
4605979c9e
commit
5392ba0db0
|
@ -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)); }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue