destroy keyboard group after unlinking listeners

Last commit addressing the issue mentioned in
0925fe956a
This commit is contained in:
Leonardo Hernández Hernández 2025-01-19 14:05:54 -06:00
parent 9a9f67db1c
commit da13a95683
No known key found for this signature in database
GPG key ID: E538897EE11B9624

2
dwl.c
View file

@ -1367,10 +1367,10 @@ destroykeyboardgroup(struct wl_listener *listener, void *data)
{
KeyboardGroup *group = wl_container_of(listener, group, destroy);
wl_event_source_remove(group->key_repeat_source);
wlr_keyboard_group_destroy(group->wlr_group);
wl_list_remove(&group->key.link);
wl_list_remove(&group->modifiers.link);
wl_list_remove(&group->destroy.link);
wlr_keyboard_group_destroy(group->wlr_group);
free(group);
}