[client] x11: fix broken grab retry logic

This commit is contained in:
Geoffrey McRae 2021-12-15 01:43:09 +11:00
parent b6fa296d5a
commit 5f80ce91e8

View File

@ -1661,7 +1661,12 @@ static void x11GrabPointer(void)
// switching to a desktop that has LG on it fails with GrabFrozen, however // switching to a desktop that has LG on it fails with GrabFrozen, however
// adding as short delay seems to resolve the issue. // adding as short delay seems to resolve the issue.
if (ret == GrabFrozen && retry == 0) if (ret == GrabFrozen && retry == 0)
{
usleep(100000); usleep(100000);
continue;
}
break;
} }
if (ret != Success) if (ret != Success)