Merge branch 'single-scene-surface' into 'master'

scene: allow at most one scene surface per surface

See merge request wlroots/wlroots!4915
This commit is contained in:
Kirill Primak 2025-06-06 00:25:56 +03:00
commit f585f97961
2 changed files with 44 additions and 9 deletions

View file

@ -123,7 +123,8 @@ struct wlr_scene_surface {
struct {
struct wlr_box clip;
struct wlr_addon addon;
struct wlr_addon scene_buffer_addon;
struct wlr_addon surface_addon;
struct wl_listener outputs_update;
struct wl_listener output_enter;
@ -416,6 +417,14 @@ struct wlr_scene_rect *wlr_scene_rect_from_node(struct wlr_scene_node *node);
struct wlr_scene_surface *wlr_scene_surface_try_from_buffer(
struct wlr_scene_buffer *scene_buffer);
/**
* Get a struct wlr_scene_surface from a struct wlr_surface.
*
* Returns NULL if there's no struct wlr_scene_surface created for this
* struct wlr_surface.
*/
struct wlr_scene_surface *wlr_scene_surface_try_from_wlr_surface(struct wlr_surface *surface);
/**
* Add a node displaying a solid-colored rectangle to the scene-graph.
*