diff --git a/src/ws.cpp b/src/ws.cpp index 6e3e0ba..c5a327a 100644 --- a/src/ws.cpp +++ b/src/ws.cpp @@ -117,7 +117,7 @@ GSourceFuncs ServerSource::s_sourceFuncs = { if (source.pfd.revents & G_IO_IN) { struct wl_event_loop* eventLoop = wl_display_get_event_loop(source.display); - wl_event_loop_dispatch(eventLoop, -1); + wl_event_loop_dispatch(eventLoop, 0); wl_display_flush_clients(source.display); }