]> Dogcows Code - chaz/openbox/blobdiff - obt/keyboard.c
dont assert when there is no valid key layout present
[chaz/openbox] / obt / keyboard.c
index 264201a670f7efcf9cb334c668f1c3baa946e557..6bb1386151ae619f735ff5e46b04fd8681619c35 100644 (file)
@@ -61,7 +61,8 @@ void obt_keyboard_reload(void)
         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,
This page took 0.020612 seconds and 4 git commands to generate.