瀏覽代碼

Win32: Make glfwPostEmptyEvent use helper window

Camilla Berglund 9 年之前
父節點
當前提交
f79a52fe9b
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/win32_window.c

+ 1 - 2
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)