backend: use global output name counters

The output names must be globally unique per the Wayland spec, even
if the compositor creates multiple backends of the same kind.
This commit is contained in:
Simon Ser 2022-10-13 13:12:43 +02:00
parent 11192e6930
commit a28caf08e3
6 changed files with 18 additions and 12 deletions

View file

@ -10,7 +10,6 @@ struct wlr_headless_backend {
struct wlr_backend backend;
struct wl_display *display;
struct wl_list outputs;
size_t last_output_num;
struct wl_listener display_destroy;
bool started;
};

View file

@ -25,7 +25,6 @@ struct wlr_wl_backend {
int drm_fd;
struct wl_list buffers; // wlr_wl_buffer.link
size_t requested_outputs;
size_t last_output_num;
struct wl_listener local_display_destroy;
char *activation_token;

View file

@ -74,7 +74,6 @@ struct wlr_x11_backend {
uint32_t dri3_major_version, dri3_minor_version;
size_t requested_outputs;
size_t last_output_num;
struct wl_list outputs; // wlr_x11_output::link
struct wlr_keyboard keyboard;