]> Dogcows Code - chaz/openbox/commitdiff
dont assert when there is no valid key layout present
authorDana Jansens <danakj@orodu.net>
Tue, 9 Feb 2010 00:29:02 +0000 (19:29 -0500)
committerDana Jansens <danakj@orodu.net>
Wed, 10 Feb 2010 02:01:58 +0000 (21:01 -0500)
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.027134 seconds and 4 git commands to generate.