diff options
-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 e03eef24..ff83bd17 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -316,7 +316,7 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) { | |||
316 | continue; | 316 | continue; |
317 | } | 317 | } |
318 | // parse keycode | 318 | // parse keycode |
319 | int keycode = (int)strtol(split->items[i], NULL, 10); | 319 | xkb_keycode_t keycode = (int)strtol(split->items[i], NULL, 10); |
320 | if (!xkb_keycode_is_legal_ext(keycode)) { | 320 | if (!xkb_keycode_is_legal_ext(keycode)) { |
321 | error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]); | 321 | error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]); |
322 | free_sway_binding(binding); | 322 | free_sway_binding(binding); |