aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/commands.c4
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) {
// 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);