diff options
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 3f286c3c..82571c83 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -43,7 +43,9 @@ int cmd_bindsym(struct sway_config *config, int argc, char **argv) { | |||
43 | // Ignore for now, we need to deal with modifier keys | 43 | // Ignore for now, we need to deal with modifier keys |
44 | // return 1; | 44 | // return 1; |
45 | } | 45 | } |
46 | list_add(binding->keys, split->items[i]); | 46 | xkb_keysym_t *key = malloc(sizeof(xkb_keysym_t)); |
47 | *key = sym; | ||
48 | list_add(binding->keys, key); | ||
47 | } | 49 | } |
48 | list_free(split); | 50 | list_free(split); |
49 | 51 | ||