diff options
author | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2006-05-15 21:57:22 +0000 |
---|---|---|
committer | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2006-05-15 21:57:22 +0000 |
commit | b25648b8d2c9fd073f2fe90332f15d2dc3183d63 (patch) | |
tree | 12974fb462bc9b8f9fdcab07f9f87f5eaf68608b /src/keyboard.c | |
parent | e40ef8cebcd446bd139dd0dcd43411479a4ef66d (diff) | |
download | xfwm4-b25648b8d2c9fd073f2fe90332f15d2dc3183d63.tar.gz |
Code cleanup.
(Old svn revision: 21694)
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 6484f8e67..62a5d83ca 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -42,9 +42,10 @@ int getModifierMap (char *str) { gchar *tmp; - int map = 0; + int map; tmp = g_ascii_strdown ((gchar *) str, -1); + map = 0; if (strstr (tmp, "shift")) { @@ -259,10 +260,11 @@ initModifiers (Display * dpy) { XModifierKeymap *modmap; KeySym *keymap; - int i; + unsigned int keycode; int keysyms_per_keycode; int min_keycode; int max_keycode; + int i; AltMask = 0; MetaMask = 0; @@ -280,8 +282,7 @@ initModifiers (Display * dpy) for (i = 3 * modmap->max_keypermod; i < 8 * modmap->max_keypermod; i++) { - unsigned int keycode = modmap->modifiermap[i]; - + keycode = modmap->modifiermap[i]; if ((keycode >= min_keycode) && (keycode <= max_keycode)) { int j; |