all repos — openbox @ e9070fe7da03effb198c0bbae8293f22fdf36085

openbox fork - make it a bit more like ryudo

dont assert when there is no valid key layout present
Dana Jansens danakj@orodu.net
commit

e9070fe7da03effb198c0bbae8293f22fdf36085

parent

4f83a15fa143999ed839011dad92d79bd2a5c065

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M obt/keyboard.cobt/keyboard.c

@@ -61,7 +61,8 @@ for (i = 0; i < OBT_KEYBOARD_NUM_MODKEYS; ++i)

modkeys_keys[i] = 0; modmap = XGetModifierMapping(obt_display); - g_assert(modmap->max_keypermod > 0); + /* note: modmap->max_keypermod can be 0 when there is no valid key layout + available */ XDisplayKeycodes(obt_display, &min_keycode, &max_keycode); keymap = XGetKeyboardMapping(obt_display, min_keycode,