mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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:
parent
11192e6930
commit
a28caf08e3
6 changed files with 18 additions and 12 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue