mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Use correct type for keycode
This commit is contained in:
parent
00c1ce4fda
commit
c1f91c4f5e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue