From 1128eb0e8405740310d7fd21c95dc96d477c24b0 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 10 Aug 2021 01:47:03 +1000 Subject: [PATCH] [client] x11: don't hang when there are no message pending --- client/displayservers/X11/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 2a75dcb8..dc6234ef 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -724,7 +724,7 @@ static int x11EventThread(void * unused) return 0; } - if (nfds == 0) + if (nfds == 0 || !XPending(x11.display)) continue; }