Fix glfwWaitEvents returning prematurely on X11

This commit is contained in:
Camilla Berglund 2015-08-14 13:52:02 +02:00
parent cc752ad6a0
commit 9f5a483256
2 changed files with 2 additions and 1 deletions

View File

@ -90,6 +90,7 @@ GLFW bundles a number of dependencies in the `deps/` directory.
- [X11] Bugfix: `GLFW_ARROW_CURSOR` selected the wrong cursor image
- [X11] Bugfix: The `GLFW_DECORATED` hint was not ignored for full screen
- [X11] Bugfix: `glfwWaitEvents` did not handle `EINTR` for `select`
- [X11] Bugfix: `glfwWaitEvents` could return when no events were available
- [WGL] Made all WGL functions dynamically loaded
- [WGL] Removed `GLFW_USE_DWM_SWAP_INTERVAL` compile-time option
- [WGL] Bugfix: Swap interval was ignored when DWM was enabled

View File

@ -1758,7 +1758,7 @@ void _glfwPlatformPollEvents(void)
void _glfwPlatformWaitEvents(void)
{
if (!XPending(_glfw.x11.display))
while (!XPending(_glfw.x11.display))
selectDisplayConnection(NULL);
_glfwPlatformPollEvents();