aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-30 19:26:08 -0400
committerIsaac Freund <mail@isaacfreund.com>2022-05-31 09:14:28 +0000
commit9eb71146ae56c509ee33c7e8a662549592aad870 (patch)
treebe2f2449bfda720b48f7d9f36f660a1b24c51aa4 /include/wlr
parent2563b79dc2c200899316d5659b0dd00ca26460b8 (diff)
wlr_scene: Refactor wlr_scene (the root element) to encase a wlr_scene_tree
Co-authored-by: Isaac Freund <mail@isaacfreund.com>
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index 0e3857d5..9af0f25c 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -41,7 +41,6 @@ typedef void (*wlr_scene_buffer_iterator_func_t)(
struct wlr_scene_buffer *buffer, int sx, int sy, void *user_data);
enum wlr_scene_node_type {
- WLR_SCENE_NODE_ROOT,
WLR_SCENE_NODE_TREE,
WLR_SCENE_NODE_RECT,
WLR_SCENE_NODE_BUFFER,
@@ -77,9 +76,14 @@ enum wlr_scene_debug_damage_option {
WLR_SCENE_DEBUG_DAMAGE_HIGHLIGHT
};
+/** A sub-tree in the scene-graph. */
+struct wlr_scene_tree {
+ struct wlr_scene_node node;
+};
+
/** The root scene-graph node. */
struct wlr_scene {
- struct wlr_scene_node node;
+ struct wlr_scene_tree tree;
struct wl_list outputs; // wlr_scene_output.link
@@ -94,11 +98,6 @@ struct wlr_scene {
struct wl_list damage_highlight_regions;
};
-/** A sub-tree in the scene-graph. */
-struct wlr_scene_tree {
- struct wlr_scene_node node;
-};
-
/** A scene-graph node displaying a single surface. */
struct wlr_scene_surface {
struct wlr_scene_buffer *buffer;