drag: don't set icon's role_data

Currently, an icon surface's role_data is set manually to a struct
wlr_drag_icon, which is hacky, incorrect (as role_data is supposed
to be the surface's role object, and drag icons don't have them), and
will be disallowed by future changes.
This commit is contained in:
Kirill Primak 2023-06-06 17:52:52 +03:00 committed by Simon Ser
parent 30616bcf0c
commit 24a479a501
2 changed files with 19 additions and 11 deletions

View file

@ -98,6 +98,8 @@ struct wlr_drag_icon {
struct wl_signal destroy;
} events;
struct wl_listener surface_destroy;
void *data;
};