backend/wayland: maintain a list of displays

This commit is contained in:
Alexander Orzechowski 2022-11-22 19:00:05 -05:00
parent cfa7696d7b
commit e14c3e1e1a
2 changed files with 75 additions and 0 deletions

View file

@ -47,9 +47,21 @@ struct wlr_wl_backend {
struct wlr_drm_format_set linux_dmabuf_v1_formats;
struct wl_drm *legacy_drm;
struct xdg_activation_v1 *activation_v1;
struct wl_list remote_outputs; // wlr_wl_remote_output.link
char *drm_render_name;
};
struct wlr_wl_remote_output {
struct wl_output *output;
uint32_t scale;
// we use this to identify the output in the
// global registry so that we can remove it later
uint32_t name;
struct wl_list link; // wlr_wl_backend.remote_outputs
};
struct wlr_wl_buffer {
struct wlr_buffer *buffer;
struct wl_buffer *wl_buffer;