scene: add wlr_scene_attach_output_layout

This is a helper to integrate wlr_scene with wlr_output_layout.
This commit is contained in:
Simon Ser 2021-09-02 12:47:28 +02:00 committed by Kenny Levinsen
parent 7832005a1f
commit a181a37b12
3 changed files with 116 additions and 0 deletions

View file

@ -24,6 +24,7 @@
#include <wlr/types/wlr_surface.h>
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