From 254d0df3b2123344d6e4cbd89d779d1a492e0b1c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 5 Aug 2015 22:41:46 -0400 Subject: [PATCH] Push the XKB key to the key list Instead of the key name --- sway/commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sway/commands.c b/sway/commands.c index 3f286c3c8..82571c834 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -43,7 +43,9 @@ int cmd_bindsym(struct sway_config *config, int argc, char **argv) { // Ignore for now, we need to deal with modifier keys // return 1; } - list_add(binding->keys, split->items[i]); + xkb_keysym_t *key = malloc(sizeof(xkb_keysym_t)); + *key = sym; + list_add(binding->keys, key); } list_free(split);