mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
Merge branch 'Fix-X11-SHM-version-check' into 'master'
Fix X11 SHM version check. See merge request wlroots/wlroots!5001
This commit is contained in:
commit
ab94301a87
1 changed files with 2 additions and 1 deletions
|
|
@ -474,7 +474,8 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_event_loop *loop,
|
|||
xcb_shm_query_version_reply_t *shm_reply =
|
||||
xcb_shm_query_version_reply(x11->xcb, shm_cookie, NULL);
|
||||
if (shm_reply) {
|
||||
if (shm_reply->major_version >= 1 || shm_reply->minor_version >= 2) {
|
||||
if (shm_reply->major_version > 1 ||
|
||||
(shm_reply->major_version == 1 && shm_reply->minor_version >= 2)) {
|
||||
if (shm_reply->shared_pixmaps) {
|
||||
x11->have_shm = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue