mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #611 from mikkeloscar/bindcode-fix
Fix bindcode by offsetting xkb keycode by 8
This commit is contained in:
commit
302872440a
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
xkb_keycode_t *key = malloc(sizeof(xkb_keycode_t));
|
xkb_keycode_t *key = malloc(sizeof(xkb_keycode_t));
|
||||||
*key = keycode;
|
*key = keycode - 8;
|
||||||
list_add(binding->keys, key);
|
list_add(binding->keys, key);
|
||||||
}
|
}
|
||||||
free_flat_list(split);
|
free_flat_list(split);
|
||||||
|
|
Loading…
Reference in a new issue