From 323f0b94db22877487bca073fca497cd033719e8 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 7 Feb 2023 21:33:10 -0500 Subject: [PATCH] wlr_scene: Cleanup header includes We don't need to pull wlr_compositor. --- include/wlr/types/wlr_scene.h | 9 ++++++++- types/scene/drag_icon.c | 1 + types/scene/subsurface_tree.c | 1 + types/scene/surface.c | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 2a2d08da0..19924090f 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -20,19 +20,25 @@ */ #include +#include #include -#include #include +#include +#include +#include struct wlr_output; struct wlr_output_layout; struct wlr_xdg_surface; struct wlr_layer_surface_v1; struct wlr_drag_icon; +struct wlr_surface; struct wlr_scene_node; struct wlr_scene_buffer; +struct wlr_presentation; + typedef bool (*wlr_scene_buffer_point_accepts_input_func_t)( struct wlr_scene_buffer *buffer, int sx, int sy); @@ -271,6 +277,7 @@ struct wlr_scene_node *wlr_scene_node_at(struct wlr_scene_node *node, * Create a new scene-graph. */ struct wlr_scene *wlr_scene_create(void); + /** * Handle presentation feedback for all surfaces in the scene, assuming that * scene outputs and the scene rendering functions are used. diff --git a/types/scene/drag_icon.c b/types/scene/drag_icon.c index 15b6b45b1..220d2c80b 100644 --- a/types/scene/drag_icon.c +++ b/types/scene/drag_icon.c @@ -1,4 +1,5 @@ #include +#include "wlr/types/wlr_compositor.h" #include #include diff --git a/types/scene/subsurface_tree.c b/types/scene/subsurface_tree.c index 35420abe4..87cbfb5f0 100644 --- a/types/scene/subsurface_tree.c +++ b/types/scene/subsurface_tree.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include diff --git a/types/scene/surface.c b/types/scene/surface.c index 3881fed32..c58bcd940 100644 --- a/types/scene/surface.c +++ b/types/scene/surface.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include