mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-08 08:21:12 -04:00
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:
parent
646b3e80b4
commit
b4041983ae
1 changed files with 1 additions and 0 deletions
1
seat.c
1
seat.c
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue