From c4d54bb7b189e18317dc3d59a49603eb56e4908e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 31 Mar 2020 18:05:34 +0200 Subject: X11: Don't wait for timeouts less than a millisecond --- pugl/detail/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pugl') diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index 6f85215..3f43a8f 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -999,7 +999,7 @@ puglUpdate(PuglWorld* world, double timeout) if (timeout < 0.0) { st = puglPollX11Socket(world, timeout); st = st ? st : puglDispatchX11Events(world); - } else if (timeout == 0.0) { + } else if (timeout <= 0.001) { st = puglDispatchX11Events(world); } else { const double endTime = startTime + timeout - 0.001; -- cgit v1.2.1