mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-24 09:47:28 -08:00
destroy keyboard group after unlinking listeners
Last commit addressing the issue mentioned in
0925fe956a
This commit is contained in:
parent
9a9f67db1c
commit
da13a95683
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -1367,10 +1367,10 @@ destroykeyboardgroup(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
KeyboardGroup *group = wl_container_of(listener, group, destroy);
|
KeyboardGroup *group = wl_container_of(listener, group, destroy);
|
||||||
wl_event_source_remove(group->key_repeat_source);
|
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->key.link);
|
||||||
wl_list_remove(&group->modifiers.link);
|
wl_list_remove(&group->modifiers.link);
|
||||||
wl_list_remove(&group->destroy.link);
|
wl_list_remove(&group->destroy.link);
|
||||||
|
wlr_keyboard_group_destroy(group->wlr_group);
|
||||||
free(group);
|
free(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue