From da13a9568312ccfdb1c5e527abf773d7512f3f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sun, 19 Jan 2025 14:05:54 -0600 Subject: [PATCH] destroy keyboard group after unlinking listeners Last commit addressing the issue mentioned in 0925fe956aeddb983875f0fd892e9049e2d8cb76 --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index f7ae6fb..1ff1167 100644 --- a/dwl.c +++ b/dwl.c @@ -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); }