diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-05 22:41:46 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-05 22:41:46 -0400 |
commit | 254d0df3b2123344d6e4cbd89d779d1a492e0b1c (patch) | |
tree | ebb850b85e90f34fd707ec3bdddc1365903db86e | |
parent | Mostly implement bindsym command (diff) | |
download | sway-254d0df3b2123344d6e4cbd89d779d1a492e0b1c.tar.gz sway-254d0df3b2123344d6e4cbd89d779d1a492e0b1c.tar.zst sway-254d0df3b2123344d6e4cbd89d779d1a492e0b1c.zip |
Push the XKB key to the key list
Instead of the key name
-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 | ||