Fix bindcode by offsetting xkb keycode by 8

The bindcode has to be offset by 8 to match the keycode we get from wlc.

https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon.h#L160
This commit is contained in:
Mikkel Oscar Lyderik 2016-04-28 21:03:38 +02:00
parent 17543d3e00
commit 1fb9489032
1 changed files with 1 additions and 1 deletions

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);