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
+3 -3
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);