From f79a52fe9bdd443facff3e66fede0dc03536c266 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 5 Sep 2016 14:34:03 +0200 Subject: [PATCH] Win32: Make glfwPostEmptyEvent use helper window --- src/win32_window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index 4d764448..e0bcb1c2 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1432,8 +1432,7 @@ void _glfwPlatformWaitEventsTimeout(double timeout) void _glfwPlatformPostEmptyEvent(void) { - _GLFWwindow* window = _glfw.windowListHead; - PostMessage(window->win32.handle, WM_NULL, 0, 0); + PostMessage(_glfw.win32.helperWindowHandle, WM_NULL, 0, 0); } void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos)