diff options
author | Simon Ser <contact@emersion.fr> | 2021-08-10 10:42:03 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-26 21:12:28 +0200 |
commit | 501b29db03258c53e95e80a45501e56cb6f7d999 (patch) | |
tree | 529e577790954149e1cd30566015581ed902dcc3 /include | |
parent | 97954154bcac678ef37bfbe22bd4221dae683632 (diff) |
scene: add user data pointer to wlr_scene_node
This allows compositors to attach arbitrary data to the scene-graph
nodes.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 2 |
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. */ |