aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c
index 05df7984..ce90ea5e 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -146,8 +146,8 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) {
output_set_refresh(&output->wlr_output, 0);
- snprintf(wlr_output->name, sizeof(wlr_output->name), "X11-%d",
- wl_list_length(&x11->outputs) + 1);
+ snprintf(wlr_output->name, sizeof(wlr_output->name), "X11-%ld",
+ ++x11->last_output_num);
parse_xcb_setup(wlr_output, x11->xcb);
uint32_t mask = XCB_CW_EVENT_MASK;