diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-20 12:41:26 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-20 12:41:26 +0100 |
commit | c1f91c4f5e5ad9a4300e254a2a1a3360079cd429 (patch) | |
tree | 030e98ee9f79c21af8ca8edcf9a7d470f6c4ecff /sway | |
parent | 00c1ce4fdab3f2618f8719225f46e13949389ac7 (diff) | |
download | sway-c1f91c4f5e5ad9a4300e254a2a1a3360079cd429.tar.xz |
Use correct type for keycode
Diffstat (limited to 'sway')
-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) { continue; } // parse keycode - int keycode = (int)strtol(split->items[i], NULL, 10); + xkb_keycode_t keycode = (int)strtol(split->items[i], NULL, 10); if (!xkb_keycode_is_legal_ext(keycode)) { error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]); free_sway_binding(binding); |