From a28caf08e364223339814d2d01cd217433d199e2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 13 Oct 2022 13:12:43 +0200 Subject: 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. --- include/backend/headless.h | 1 - include/backend/wayland.h | 1 - include/backend/x11.h | 1 - 3 files changed, 3 deletions(-) (limited to 'include') diff --git a/include/backend/headless.h b/include/backend/headless.h index 04750900..4c71fb60 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -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; }; diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 3a0b1327..c23c0f9a 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -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; diff --git a/include/backend/x11.h b/include/backend/x11.h index 572fce18..e362d5b3 100644 --- a/include/backend/x11.h +++ b/include/backend/x11.h @@ -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; -- cgit v1.2.3