[client] x11: fix broken grab retry logic

This commit is contained in:
Geoffrey McRae committed 2021-12-15 01:43:09 +11:00
1 parent b6fa296d5a
commit 5f80ce91e8
1 file changed
+5
+5
View File
@@ -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)