From 3317134adff0ed179e0ecaea6d778dbd0684f771 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 18 Nov 2019 19:46:05 +1300 Subject: backend/x11: Drop required present version We say 1.2, but I don't think we actually use anything that was introduced past 1.0. --- backend/x11/backend.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'backend/x11') diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 9a7387ce..2eea800d 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -228,12 +228,11 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, x11->present_opcode = ext->major_opcode; xcb_present_query_version_cookie_t present_cookie = - xcb_present_query_version(x11->xcb, 1, 2); + xcb_present_query_version(x11->xcb, 1, 0); xcb_present_query_version_reply_t *present_reply = xcb_present_query_version_reply(x11->xcb, present_cookie, NULL); - if (!present_reply || (present_reply->major_version <= 1 && - present_reply->minor_version < 2)) { + if (!present_reply) { wlr_log(WLR_ERROR, "X11 does not support required Present version"); free(present_reply); goto error_display; -- cgit v1.2.3