]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: That should be xcb_keycode_t, not xcb_keysym_t
authorMichael Stapelberg <michael+git@stapelberg.de>
Sun, 19 Apr 2009 19:40:49 +0000 (21:40 +0200)
committerMichael Stapelberg <michael+git@stapelberg.de>
Sun, 19 Apr 2009 19:40:49 +0000 (21:40 +0200)
src/xcb.c

index 0daf4b42d3174f43701314857e75f47c2f9df1a9..708e1eadadaf4a7e549437af4fa705e62acdc68a 100644 (file)
--- a/src/xcb.c
+++ b/src/xcb.c
@@ -262,11 +262,11 @@ void xcb_get_numlock_mask(xcb_connection_t *conn) {
 
         /* Get the keycode for numlock */
 #ifdef OLD_XCB_KEYSYMS_API
-        xcb_keysym_t numlock = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
+        xcb_keycode_t numlock = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
 #else
         /* For now, we only use the first keysymbol. */
-        xcb_keysym_t *numlock_syms = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
-        xcb_keysym_t numlock = *numlock_syms;
+        xcb_keycode_t *numlock_syms = xcb_key_symbols_get_keycode(keysyms, XCB_NUM_LOCK);
+        xcb_keycode_t numlock = *numlock_syms;
 #endif
 
         /* Check all modifiers (Mod1-Mod5, Shift, Control, Lock) */