From 5392ba0db02ef9d3c3e0045fc2679582eb7644ce Mon Sep 17 00:00:00 2001 From: Mariusz Ceier Date: Fri, 28 Aug 2015 11:23:44 +0200 Subject: Correct event type KeymapNotify should not be handled by calling XRefreshKeyboardMapping. XRefreshKeyboardMapping expects XMappingEvent. --- src/api/x11/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/x11/window.rs') diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 36b60e4..5bfbda9 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -186,7 +186,7 @@ impl<'a> Iterator for PollEventsIterator<'a> { } match xev.get_type() { - ffi::KeymapNotify => { + ffi::MappingNotify => { unsafe { (xlib.XRefreshKeyboardMapping)(mem::transmute(&xev)); } }, -- cgit v1.2.3