diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-08 19:29:02 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-09 21:01:58 -0500 |
| commit | e9070fe7da03effb198c0bbae8293f22fdf36085 (patch) | |
| tree | 8c89de0a10a59bec6beab17ff0c7437026253fa7 /obt/keyboard.c | |
| parent | 4f83a15fa143999ed839011dad92d79bd2a5c065 (diff) | |
dont assert when there is no valid key layout present
Diffstat (limited to 'obt/keyboard.c')
| -rw-r--r-- | obt/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obt/keyboard.c b/obt/keyboard.c index 264201a6..6bb13861 100644 --- a/obt/keyboard.c +++ b/obt/keyboard.c @@ -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, |
