backend/wayland: add wlr_wl_output_create_from_surface()

By using this function, a compositor can display a wlroots
compositor in a sub-surface, for instance.
This commit is contained in:
Simon Ser 2023-06-07 14:35:26 +02:00
parent 4f88886199
commit 8678633fc9
3 changed files with 89 additions and 30 deletions

View file

@ -84,6 +84,7 @@ struct wlr_wl_output {
struct wl_list link;
struct wl_surface *surface;
bool own_surface;
struct wl_callback *frame_callback;
struct xdg_surface *xdg_surface;
struct xdg_toplevel *xdg_toplevel;