Skip to content

Commit

Permalink
Merge pull request #611 from mikkeloscar/bindcode-fix
Browse files Browse the repository at this point in the history
Fix bindcode by offsetting xkb keycode by 8
  • Loading branch information
ddevault committed Apr 28, 2016
2 parents 17543d3 + 1fb9489 commit 3028724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3028724

Please sign in to comment.