From 5f80ce91e895eee1308671e9bb25714bf6b95f7c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 15 Dec 2021 01:43:09 +1100 Subject: [PATCH] [client] x11: fix broken grab retry logic --- client/displayservers/X11/x11.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index d7057598..ca2616eb 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -1661,7 +1661,12 @@ static void x11GrabPointer(void) // switching to a desktop that has LG on it fails with GrabFrozen, however // adding as short delay seems to resolve the issue. if (ret == GrabFrozen && retry == 0) + { usleep(100000); + continue; + } + + break; } if (ret != Success)