Damage drag icon when destroyed

This fixes the drag icon not disappearing when releasing the
pointer button.

Reproduction steps:

- Open gedit
- Drag some text around
- Release the pointer button
This commit is contained in:
Simon Ser 2021-08-09 20:33:38 +02:00 committed by Jente Hidskes
parent cdb1cdf3b4
commit 5424a35aba

1
seat.c
View file

@ -642,6 +642,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);