aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-06-06 17:52:52 +0300
committerSimon Ser <contact@emersion.fr>2023-06-08 20:03:18 +0200
commit24a479a50195988dbf622c6b7fe1f2263fd981b1 (patch)
tree41f01e7fa422b36b5ad0019e9b0d2eb74193c399 /include
parent30616bcf0cb3f2b15bb9f9ecd71b26f7bfe13481 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_data_device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h
index 0b425e88..ba067a62 100644
--- a/include/wlr/types/wlr_data_device.h
+++ b/include/wlr/types/wlr_data_device.h
@@ -98,6 +98,8 @@ struct wlr_drag_icon {
struct wl_signal destroy;
} events;
+ struct wl_listener surface_destroy;
+
void *data;
};