Remove window requirement for all event functions

This lets an application wait for non-window events without needing to
create a window.

Fixes #1317.
This commit is contained in:
Camilla Löwy
2019-01-15 19:28:17 +01:00
parent ea7eb2ddab
commit 55b1a16f90
4 changed files with 3 additions and 22 deletions
-8
View File
@@ -1078,10 +1078,6 @@ GLFWAPI void glfwPollEvents(void)
GLFWAPI void glfwWaitEvents(void)
{
_GLFW_REQUIRE_INIT();
if (!_glfw.windowListHead)
return;
_glfwPlatformWaitEvents();
}
@@ -1104,10 +1100,6 @@ GLFWAPI void glfwWaitEventsTimeout(double timeout)
GLFWAPI void glfwPostEmptyEvent(void)
{
_GLFW_REQUIRE_INIT();
if (!_glfw.windowListHead)
return;
_glfwPlatformPostEmptyEvent();
}