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
parent 646b3e80b4
commit b4041983ae

1
seat.c
View file

@ -648,6 +648,7 @@ handle_drag_icon_destroy(struct wl_listener *listener, void *data)
{ {
struct cg_drag_icon *drag_icon = wl_container_of(listener, drag_icon, destroy); 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->link);
wl_list_remove(&drag_icon->destroy.link); wl_list_remove(&drag_icon->destroy.link);
free(drag_icon); free(drag_icon);