From: Michael Stapelberg Date: Fri, 19 Mar 2010 15:02:12 +0000 (+0100) Subject: Fix compilation with the old xcb keysyms api X-Git-Tag: 3.e~6^2~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0bb1b718d1576e9ee5c7f6859560af1300e41c11;p=i3%2Fi3 Fix compilation with the old xcb keysyms api --- diff --git a/src/config.c b/src/config.c index 8d32ad4a..f42583fa 100644 --- a/src/config.c +++ b/src/config.c @@ -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