]> git.sur5r.net Git - i3/i3/commitdiff
Fix compilation with the old xcb keysyms api
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Mar 2010 15:02:12 +0000 (16:02 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Mar 2010 15:02:33 +0000 (16:02 +0100)
src/config.c

index 8d32ad4a22041d799cd7f4f9ba4c5d6bfeea5a27..f42583fa150102d35a5f14669ec31c544eaa7c51 100644 (file)
@@ -138,7 +138,7 @@ void translate_keysyms() {
                 bind->number_keycodes = 1;
                 xcb_keycode_t code = xcb_key_symbols_get_keycode(keysyms, keysym);
                 DLOG("Translated symbol \"%s\" to 1 keycode (%d)\n", bind->symbol, code);
-                grab_keycode_for_binding(conn, bind, code);
+                grab_keycode_for_binding(global_conn, bind, code);
                 bind->translated_to = smalloc(sizeof(xcb_keycode_t));
                 memcpy(bind->translated_to, &code, sizeof(xcb_keycode_t));
 #else