summaryrefslogtreecommitdiff
path: root/wlr_scene.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <[email protected]>2022-05-19 14:01:44 -0400
committerAlexander Orzechowski <[email protected]>2022-05-19 14:24:05 -0400
commitae39acc1c14d3c2267eebce4e0e7427865fb5003 (patch)
tree1a4e68fc17b695bca24fb2218e35f763aa41ab04 /wlr_scene.c
parent29e68cc8c9c9543b6fcc407e83c47a87a59fe38e (diff)
wlr_scene: Pull scene_node_get_root into a private header
We will need this for surface emulation on buffers.
Diffstat (limited to 'wlr_scene.c')
-rw-r--r--wlr_scene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wlr_scene.c b/wlr_scene.c
index 6e940cb..823ddcf 100644
--- a/wlr_scene.c
+++ b/wlr_scene.c
@@ -10,6 +10,7 @@
#include <wlr/types/wlr_scene.h>
#include <wlr/util/log.h>
#include <wlr/util/region.h>
+#include "types/wlr_scene.h"
#include "util/signal.h"
static struct wlr_scene *scene_root_from_node(struct wlr_scene_node *node) {
@@ -35,7 +36,7 @@ struct wlr_scene_buffer *wlr_scene_buffer_from_node(
return (struct wlr_scene_buffer *)node;
}
-static struct wlr_scene *scene_node_get_root(struct wlr_scene_node *node) {
+struct wlr_scene *scene_node_get_root(struct wlr_scene_node *node) {
while (node->parent != NULL) {
node = node->parent;
}