1
0
Fork 0
mirror of https://github.com/NickHu/sway synced 2025-01-28 07:58:22 +01:00

Use XKB keycode numbering for bindcode

This commit is contained in:
frsfnrrg 2018-05-31 19:33:38 -04:00
parent d77681ea3d
commit f5ed65e633

View file

@ -158,7 +158,7 @@ static struct cmd_results * cmd_bindsym_or_bindcode(int argc, char **argv, bool
} }
if (bindcode) { if (bindcode) {
*key = (uint32_t) (keycode - 8); *key = (uint32_t) keycode;
} else { } else {
*key = (uint32_t) keysym; *key = (uint32_t) keysym;
} }