diff options
Diffstat (limited to 'pugl/detail')
-rw-r--r-- | pugl/detail/x11.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index cc6eb5d..4f4d7e8 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -118,7 +118,9 @@ puglInitViewInternals(void) PuglStatus puglPollEvents(PuglWorld* world, const double timeout) { - XFlush(world->impl->display); + if (XPending(world->impl->display) > 0) { + return PUGL_SUCCESS; + } const int fd = ConnectionNumber(world->impl->display); const int nfds = fd + 1; |