diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/wayland/output.c b/backend/wayland/output.c index ba435c25..0f314031 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -290,8 +290,8 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *wlr_backend) { wlr_output_update_custom_mode(wlr_output, 1280, 720, 0); strncpy(wlr_output->make, "wayland", sizeof(wlr_output->make)); strncpy(wlr_output->model, "wayland", sizeof(wlr_output->model)); - snprintf(wlr_output->name, sizeof(wlr_output->name), "WL-%d", - wl_list_length(&backend->outputs) + 1); + snprintf(wlr_output->name, sizeof(wlr_output->name), "WL-%lu", + ++backend->last_output_num); output->backend = backend; |