1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00

Fixed resizing for full screen override redirect.

This commit is contained in:
Camilla Berglund 2013-06-19 13:45:28 +02:00
parent 96259004be
commit e11a5e3973
2 changed files with 5 additions and 3 deletions

View File

@ -101,6 +101,8 @@ See the [GLFW 3.0 documentation](http://www.glfw.org/docs/3.0/).
- Bugfix: The `-Wall` flag was not used with Clang and other GCC compatibles
- Bugfix: The default for `GLFW_ALPHA_BITS` was set to zero
- [X11] Bugfix: Override-redirect windows were resized to the desired instead
of the actual resolution of the selected video mode
## Contact

View File

@ -1026,15 +1026,15 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
if (window->monitor)
{
_glfwSetVideoMode(window->monitor, &window->videoMode);
if (window->x11.overrideRedirect)
{
GLFWvidmode mode;
_glfwPlatformGetVideoMode(window->monitor, &mode);
XResizeWindow(_glfw.x11.display, window->x11.handle,
window->videoMode.width, window->videoMode.height);
mode.width, mode.height);
}
_glfwSetVideoMode(window->monitor, &window->videoMode);
}
else
XResizeWindow(_glfw.x11.display, window->x11.handle, width, height);