dix: Properly detect if the other device is frozen
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
This commit is contained in:
parent
5e79976c13
commit
7897b6c2d4
|
@ -1673,7 +1673,7 @@ AllowSome(ClientPtr client,
|
||||||
thisGrabbed = grabinfo->grab && SameClient(grabinfo->grab, client);
|
thisGrabbed = grabinfo->grab && SameClient(grabinfo->grab, client);
|
||||||
thisSynced = FALSE;
|
thisSynced = FALSE;
|
||||||
otherGrabbed = FALSE;
|
otherGrabbed = FALSE;
|
||||||
othersFrozen = TRUE;
|
othersFrozen = FALSE;
|
||||||
grabTime = grabinfo->grabTime;
|
grabTime = grabinfo->grabTime;
|
||||||
for (dev = inputInfo.devices; dev; dev = dev->next)
|
for (dev = inputInfo.devices; dev; dev = dev->next)
|
||||||
{
|
{
|
||||||
|
@ -1689,11 +1689,9 @@ AllowSome(ClientPtr client,
|
||||||
otherGrabbed = TRUE;
|
otherGrabbed = TRUE;
|
||||||
if (grabinfo->sync.other == devgrabinfo->grab)
|
if (grabinfo->sync.other == devgrabinfo->grab)
|
||||||
thisSynced = TRUE;
|
thisSynced = TRUE;
|
||||||
if (devgrabinfo->sync.state < FROZEN)
|
if (devgrabinfo->sync.state >= FROZEN)
|
||||||
othersFrozen = FALSE;
|
othersFrozen = TRUE;
|
||||||
}
|
}
|
||||||
else if (!devgrabinfo->sync.other || !SameClient(devgrabinfo->sync.other, client))
|
|
||||||
othersFrozen = FALSE;
|
|
||||||
}
|
}
|
||||||
if (!((thisGrabbed && grabinfo->sync.state >= FROZEN) || thisSynced))
|
if (!((thisGrabbed && grabinfo->sync.state >= FROZEN) || thisSynced))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue