|
|
|
@ -498,8 +498,8 @@ static GLboolean initExtensions(void) |
|
|
|
|
XRRScreenResources* sr; |
|
|
|
|
|
|
|
|
|
if (!XRRQueryVersion(_glfw.x11.display, |
|
|
|
|
&_glfw.x11.randr.versionMajor, |
|
|
|
|
&_glfw.x11.randr.versionMinor)) |
|
|
|
|
&_glfw.x11.randr.major, |
|
|
|
|
&_glfw.x11.randr.minor)) |
|
|
|
|
{ |
|
|
|
|
_glfwInputError(GLFW_PLATFORM_ERROR, |
|
|
|
|
"X11: Failed to query RandR version"); |
|
|
|
@ -507,11 +507,8 @@ static GLboolean initExtensions(void) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The GLFW RandR path requires at least version 1.3
|
|
|
|
|
if (_glfw.x11.randr.versionMajor == 1 && |
|
|
|
|
_glfw.x11.randr.versionMinor < 3) |
|
|
|
|
{ |
|
|
|
|
if (_glfw.x11.randr.major == 1 && _glfw.x11.randr.minor < 3) |
|
|
|
|
_glfw.x11.randr.available = GL_FALSE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); |
|
|
|
|
|
|
|
|
@ -530,8 +527,8 @@ static GLboolean initExtensions(void) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (XineramaQueryExtension(_glfw.x11.display, |
|
|
|
|
&_glfw.x11.xinerama.versionMajor, |
|
|
|
|
&_glfw.x11.xinerama.versionMinor)) |
|
|
|
|
&_glfw.x11.xinerama.major, |
|
|
|
|
&_glfw.x11.xinerama.minor)) |
|
|
|
|
{ |
|
|
|
|
if (XineramaIsActive(_glfw.x11.display)) |
|
|
|
|
_glfw.x11.xinerama.available = GL_TRUE; |
|
|
|
@ -544,12 +541,12 @@ static GLboolean initExtensions(void) |
|
|
|
|
&_glfw.x11.xi.eventBase, |
|
|
|
|
&_glfw.x11.xi.errorBase)) |
|
|
|
|
{ |
|
|
|
|
_glfw.x11.xi.versionMajor = 2; |
|
|
|
|
_glfw.x11.xi.versionMinor = 0; |
|
|
|
|
_glfw.x11.xi.major = 2; |
|
|
|
|
_glfw.x11.xi.minor = 0; |
|
|
|
|
|
|
|
|
|
if (XIQueryVersion(_glfw.x11.display, |
|
|
|
|
&_glfw.x11.xi.versionMajor, |
|
|
|
|
&_glfw.x11.xi.versionMinor) != BadRequest) |
|
|
|
|
&_glfw.x11.xi.major, |
|
|
|
|
&_glfw.x11.xi.minor) != BadRequest) |
|
|
|
|
{ |
|
|
|
|
_glfw.x11.xi.available = GL_TRUE; |
|
|
|
|
} |
|
|
|
@ -557,15 +554,15 @@ static GLboolean initExtensions(void) |
|
|
|
|
#endif /*_GLFW_HAS_XINPUT*/ |
|
|
|
|
|
|
|
|
|
// Check if Xkb is supported on this display
|
|
|
|
|
_glfw.x11.xkb.versionMajor = 1; |
|
|
|
|
_glfw.x11.xkb.versionMinor = 0; |
|
|
|
|
_glfw.x11.xkb.major = 1; |
|
|
|
|
_glfw.x11.xkb.minor = 0; |
|
|
|
|
_glfw.x11.xkb.available = |
|
|
|
|
XkbQueryExtension(_glfw.x11.display, |
|
|
|
|
&_glfw.x11.xkb.majorOpcode, |
|
|
|
|
&_glfw.x11.xkb.eventBase, |
|
|
|
|
&_glfw.x11.xkb.errorBase, |
|
|
|
|
&_glfw.x11.xkb.versionMajor, |
|
|
|
|
&_glfw.x11.xkb.versionMinor); |
|
|
|
|
&_glfw.x11.xkb.major, |
|
|
|
|
&_glfw.x11.xkb.minor); |
|
|
|
|
|
|
|
|
|
if (_glfw.x11.xkb.available) |
|
|
|
|
{ |
|
|
|
|