mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
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.
This commit is contained in:
parent
b58e8451b8
commit
3317134adf
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue