1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Added missing X command flushing.

This commit is contained in:
Camilla Berglund 2014-04-07 13:36:25 +02:00
parent df1c895076
commit bbc12ade7f

View File

@ -1188,6 +1188,8 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
PropModeReplace, PropModeReplace,
(unsigned char*) title, strlen(title)); (unsigned char*) title, strlen(title));
} }
XFlush(_glfw.x11.display);
} }
void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
@ -1322,6 +1324,7 @@ void _glfwPlatformIconifyWindow(_GLFWwindow* window)
} }
XIconifyWindow(_glfw.x11.display, window->x11.handle, _glfw.x11.screen); XIconifyWindow(_glfw.x11.display, window->x11.handle, _glfw.x11.screen);
XFlush(_glfw.x11.display);
} }
void _glfwPlatformRestoreWindow(_GLFWwindow* window) void _glfwPlatformRestoreWindow(_GLFWwindow* window)
@ -1337,6 +1340,7 @@ void _glfwPlatformRestoreWindow(_GLFWwindow* window)
} }
XMapWindow(_glfw.x11.display, window->x11.handle); XMapWindow(_glfw.x11.display, window->x11.handle);
XFlush(_glfw.x11.display);
} }
void _glfwPlatformShowWindow(_GLFWwindow* window) void _glfwPlatformShowWindow(_GLFWwindow* window)