Fix drag icon destroying

This commit is contained in:
project-repo 2020-06-26 11:40:48 +02:00
commit 36d1f9bb6d

1
seat.c
View file

@ -731,6 +731,7 @@ handle_drag_icon_destroy(struct wl_listener *listener, void *_data) {
struct cg_drag_icon *drag_icon =
wl_container_of(listener, drag_icon, destroy);
drag_icon_damage(drag_icon);
wl_list_remove(&drag_icon->link);
wl_list_remove(&drag_icon->destroy.link);
free(drag_icon);