From 501b29db03258c53e95e80a45501e56cb6f7d999 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 10 Aug 2021 10:42:03 +0200 Subject: scene: add user data pointer to wlr_scene_node This allows compositors to attach arbitrary data to the scene-graph nodes. --- include/wlr/types/wlr_scene.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index b5690575..282685a7 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -48,6 +48,8 @@ struct wlr_scene_node { struct { struct wl_signal destroy; } events; + + void *data; }; /** The root scene-graph node. */ -- cgit v1.2.3