diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 48d47b4a..9cdf18e5 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -62,6 +62,12 @@ static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id) // void _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired) { + GLFWvidmode current; + + _glfwPlatformGetVideoMode(monitor, ¤t); + if (_glfwCompareVideoModes(¤t, desired) == 0) + return; + if (_glfw.x11.randr.available) { int i, j;