Don't neglect to call XRefreshKeyboardMapping
Should fix https://sourceforge.net/tracker/?func=detail&aid=3460959&group_id=229797&atid=1078454
+4 −3 · 1 file changed
-
main.cc+4 −3
@@ -1398,9 +1398,10 @@ void Main::handle_event(XEvent &ev) { return; case MappingNotify: - if (ev.xmapping.request != MappingPointer) - return; - update_core_mapping(); + if (ev.xmapping.request == MappingPointer) + update_core_mapping(); + if (ev.xmapping.request == MappingKeyboard || ev.xmapping.request == MappingModifier) + XRefreshKeyboardMapping(&ev.xmapping); return; case GenericEvent: if (ev.xcookie.extension == grabber->opcode && XGetEventData(dpy, &ev.xcookie)) {