From a181a37b12c804d658bb82eb542870a0ee54a63d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 2 Sep 2021 12:47:28 +0200 Subject: scene: add wlr_scene_attach_output_layout This is a helper to integrate wlr_scene with wlr_output_layout. --- include/wlr/types/wlr_scene.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 95d86d83..df3d00e8 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -24,6 +24,7 @@ #include struct wlr_output; +struct wlr_output_layout; enum wlr_scene_node_type { WLR_SCENE_NODE_ROOT, @@ -203,4 +204,13 @@ void wlr_scene_output_set_position(struct wlr_scene_output *scene_output, */ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output); +/** + * Attach an output layout to a scene. + * + * Outputs in the output layout are automatically added to the scene. Any + * change to the output layout is mirrored to the scene-graph outputs. + */ +bool wlr_scene_attach_output_layout(struct wlr_scene *scene, + struct wlr_output_layout *output_layout); + #endif -- cgit v1.2.3