mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 03:52:01 +00:00
Avoid X11 video mode setting if modes match.
This matches the behavior of the Windows port.
This commit is contained in:
parent
4fe88a52fa
commit
a79b93f5bc
@ -111,6 +111,9 @@ void _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired)
|
||||
}
|
||||
}
|
||||
|
||||
if (bestMode == ci->mode)
|
||||
return;
|
||||
|
||||
if (monitor->x11.oldMode == None)
|
||||
monitor->x11.oldMode = ci->mode;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user