aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/bind.c
diff options
context:
space:
mode:
authorLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-05-31 19:33:38 -0400
committerLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-06-01 18:52:36 -0400
commitf5ed65e633b6ec3afe4a5f654a48fd96f187b282 (patch)
tree9dc84a27bb1d42ef5b79187ed7042ef2e71e2cad /sway/commands/bind.c
parentShare common code between bindsym and bindcode commands (diff)
downloadsway-f5ed65e633b6ec3afe4a5f654a48fd96f187b282.tar.gz
sway-f5ed65e633b6ec3afe4a5f654a48fd96f187b282.tar.zst
sway-f5ed65e633b6ec3afe4a5f654a48fd96f187b282.zip
Use XKB keycode numbering for bindcode
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r--sway/commands/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c
index f3bf72ad..f963001b 100644
--- a/sway/commands/bind.c
+++ b/sway/commands/bind.c
@@ -158,7 +158,7 @@ static struct cmd_results * cmd_bindsym_or_bindcode(int argc, char **argv, bool
158 } 158 }
159 159
160 if (bindcode) { 160 if (bindcode) {
161 *key = (uint32_t) (keycode - 8); 161 *key = (uint32_t) keycode;
162 } else { 162 } else {
163 *key = (uint32_t) keysym; 163 *key = (uint32_t) keysym;
164 } 164 }