From 24a479a50195988dbf622c6b7fe1f2263fd981b1 Mon Sep 17 00:00:00 2001
From: Kirill Primak <vyivel@eclair.cafe>
Date: Tue, 6 Jun 2023 17:52:52 +0300
Subject: 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.
---
 include/wlr/types/wlr_data_device.h | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'include/wlr')

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;
 };
 
-- 
cgit v1.2.3