diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 4da411c4..26fa771e 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -317,7 +317,7 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) { | |||
317 | continue; | 317 | continue; |
318 | } | 318 | } |
319 | // parse keycode | 319 | // parse keycode |
320 | int keycode = (int)strtol(split->items[i], NULL, 10); | 320 | xkb_keycode_t keycode = (int)strtol(split->items[i], NULL, 10); |
321 | if (!xkb_keycode_is_legal_ext(keycode)) { | 321 | if (!xkb_keycode_is_legal_ext(keycode)) { |
322 | error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]); | 322 | error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]); |
323 | free_sway_binding(binding); | 323 | free_sway_binding(binding); |