]> git.sur5r.net Git - i3/i3/commitdiff
no-op change: store |button| in the correct data type
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 24 May 2017 18:41:55 +0000 (20:41 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 24 May 2017 18:41:55 +0000 (20:41 +0200)
src/bindings.c

index e9aec2c6fd694c70b7a86b02fbd8ec2b568852c5..7cba556e1877e9d84d34c2b93d82afdf611fab5e 100644 (file)
@@ -483,8 +483,9 @@ void translate_keysyms(void) {
                 ELOG("Could not translate string to button: \"%s\"\n", bind->symbol);
             }
 
-            bind->keycode = button;
-            ADD_TRANSLATED_KEY(button, bind->event_state_mask);
+            xcb_keycode_t key = button;
+            bind->keycode = key;
+            ADD_TRANSLATED_KEY(key, bind->event_state_mask);
             continue;
         }