Wayland backend: Dont roundtrip to the server just to wakeup the main loop

This commit is contained in:
Kovid Goyal 2019-04-27 14:52:15 +05:30
parent 379ec88776
commit 8b47e63136
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

1
glfw/wl_window.c vendored
View file

@ -1393,7 +1393,6 @@ void _glfwPlatformWaitEventsTimeout(double timeout)
void _glfwPlatformPostEmptyEvent(void)
{
wl_display_sync(_glfw.wl.display);
while (write(_glfw.wl.eventLoopData.wakeupFds[1], "w", 1) < 0 && errno == EINTR);
}