Wayland: Fix glfwPostEmptyEvent not always working

The display sync requests in glfwPostEmptyEvent could just accumulate as
the display was never flushed on secondary threads.

This adds a proper flush after each sync request.

Fixes #1520
Closes #1521

(cherry picked from commit a32cbf6d4f)
This commit is contained in:
Camilla Löwy
2022-03-03 21:46:50 +01:00
committed by Camilla Löwy
parent 499a5a7917
commit eac18b9324
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1393,6 +1393,7 @@ void _glfwPlatformWaitEventsTimeout(double timeout)
void _glfwPlatformPostEmptyEvent(void)
{
wl_display_sync(_glfw.wl.display);
flushDisplay();
}
void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos)