diff --git a/src/config/keybind.c b/src/config/keybind.c index 88883b8f..559861ae 100644 --- a/src/config/keybind.c +++ b/src/config/keybind.c @@ -58,7 +58,7 @@ keybind_create(const char *keybind) if (!k) { return NULL; } - wl_list_insert(&rc.keybinds, &k->link); + wl_list_insert(rc.keybinds.prev, &k->link); k->keysyms = malloc(k->keysyms_len * sizeof(xkb_keysym_t)); memcpy(k->keysyms, keysyms, k->keysyms_len * sizeof(xkb_keysym_t)); wl_list_init(&k->actions);