diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-04-28 15:12:02 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-04-28 15:12:02 -0400 |
| commit | f56c7fa50b0c7493313d24a1eb9b94ab75ed637c (patch) | |
| tree | afb4df145abc7145a5dafcbacda8795c84c82d06 | |
| parent | 67575b882d061c8fd867e59c4df4fc8eae4bbba1 (diff) | |
| parent | 2418b4e545587c2280b45c46bf26b19d518631a0 (diff) | |
Merge pull request #611 from mikkeloscar/bindcode-fix
Fix bindcode by offsetting xkb keycode by 8
| -rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 34364917..c1390016 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -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); |
