From 3d040dacde12681315193139db5dea17ec50eb61 Mon Sep 17 00:00:00 2001 From: bmitc <65685447+bmitc@users.noreply.github.com> Date: Wed, 28 Dec 2022 04:22:38 -0500 Subject: [PATCH] Update logic for X11 RandR version check Changed major to be greater than or equal to 1, rather than just greater than, and switched from OR to AND operator. --- src/x11_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_init.c b/src/x11_init.c index a0100f2f..5e48ea93 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -715,7 +715,7 @@ static GLFWbool initExtensions(void) &_glfw.x11.randr.minor)) { // The GLFW RandR path requires at least version 1.3 - if (_glfw.x11.randr.major > 1 || _glfw.x11.randr.minor >= 3) + if (_glfw.x11.randr.major >= 1 && _glfw.x11.randr.minor >= 3) _glfw.x11.randr.available = GLFW_TRUE; } else