mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-29 10:33:37 +00:00
[client] x11: be more agressive grabbing the pointer
This commit is contained in:
parent
9d47ca4f12
commit
65948034dd
1 changed files with 2 additions and 2 deletions
|
@ -1652,7 +1652,7 @@ static void x11GrabPointer(void)
|
||||||
XISetMask(mask.mask, XI_Leave );
|
XISetMask(mask.mask, XI_Leave );
|
||||||
|
|
||||||
Status ret;
|
Status ret;
|
||||||
for(int retry = 0; retry < 2; ++retry)
|
for(int retry = 0; retry < 10; ++retry)
|
||||||
{
|
{
|
||||||
ret = XIGrabDevice(
|
ret = XIGrabDevice(
|
||||||
x11.display,
|
x11.display,
|
||||||
|
@ -1668,7 +1668,7 @@ static void x11GrabPointer(void)
|
||||||
// on some WMs (i3) for an unknown reason the first grab attempt when
|
// on some WMs (i3) for an unknown reason the first grab attempt when
|
||||||
// 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 < 9)
|
||||||
{
|
{
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue