Merge pull request #611 from mikkeloscar/bindcode-fix

Fix bindcode by offsetting xkb keycode by 8
This commit is contained in:
Drew DeVault 2016-04-28 15:12:02 -04:00
commit 302872440a

View File

@ -335,7 +335,7 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) {
return error;
}
xkb_keycode_t *key = malloc(sizeof(xkb_keycode_t));
*key = keycode;
*key = keycode - 8;
list_add(binding->keys, key);
}
free_flat_list(split);