aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-10 10:42:03 +0200
committerSimon Ser <contact@emersion.fr>2021-08-26 21:12:28 +0200
commit501b29db03258c53e95e80a45501e56cb6f7d999 (patch)
tree529e577790954149e1cd30566015581ed902dcc3
parent97954154bcac678ef37bfbe22bd4221dae683632 (diff)
scene: add user data pointer to wlr_scene_node
This allows compositors to attach arbitrary data to the scene-graph nodes.
-rw-r--r--include/wlr/types/wlr_scene.h2
1 files changed, 2 insertions, 0 deletions
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. */