From: Dana Jansens Date: Thu, 11 Feb 2010 16:00:41 +0000 (-0500) Subject: get xlib to reload the keyboard on MappingNotify events X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=e83803b8b001bb7eb24ac7441668e57d964f0b27;p=chaz%2Fopenbox get xlib to reload the keyboard on MappingNotify events --- diff --git a/openbox/event.c b/openbox/event.c index 078eaa7f..378b0b4b 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -648,6 +648,7 @@ static void event_process(const XEvent *ec, gpointer data) modifier map, and rebind all the key bindings as appropriate */ ob_debug("Keyboard map changed. Reloading keyboard bindings."); ob_set_state(OB_STATE_RECONFIGURING); + XRefreshKeyboardMapping(&e->xmapping); obt_keyboard_reload(); keyboard_rebind(); ob_set_state(OB_STATE_RUNNING);