backend/wayland: maintain a list of displays

This commit is contained in:
Alexander Orzechowski 2022-11-22 19:00:05 -05:00 committed by Alexander Orzechowski
parent 89dcecba39
commit c15cd16d0e
2 changed files with 75 additions and 0 deletions

View file

@ -48,9 +48,21 @@ struct wlr_wl_backend {
struct wl_drm *legacy_drm;
struct xdg_activation_v1 *activation_v1;
struct wl_subcompositor *subcompositor;
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;