mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 21:08:13 +02:00
dix: Properly detect if the other device is frozen
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
(cherry picked from commit 7897b6c2d4)
This commit is contained in:
parent
ccbf949abb
commit
ade4636c7e
1 changed files with 3 additions and 5 deletions
|
|
@ -1673,7 +1673,7 @@ AllowSome(ClientPtr client,
|
|||
thisGrabbed = grabinfo->grab && SameClient(grabinfo->grab, client);
|
||||
thisSynced = FALSE;
|
||||
otherGrabbed = FALSE;
|
||||
othersFrozen = TRUE;
|
||||
othersFrozen = FALSE;
|
||||
grabTime = grabinfo->grabTime;
|
||||
for (dev = inputInfo.devices; dev; dev = dev->next)
|
||||
{
|
||||
|
|
@ -1689,11 +1689,9 @@ AllowSome(ClientPtr client,
|
|||
otherGrabbed = TRUE;
|
||||
if (grabinfo->sync.other == devgrabinfo->grab)
|
||||
thisSynced = TRUE;
|
||||
if (devgrabinfo->sync.state < FROZEN)
|
||||
othersFrozen = FALSE;
|
||||
if (devgrabinfo->sync.state >= FROZEN)
|
||||
othersFrozen = TRUE;
|
||||
}
|
||||
else if (!devgrabinfo->sync.other || !SameClient(devgrabinfo->sync.other, client))
|
||||
othersFrozen = FALSE;
|
||||
}
|
||||
if (!((thisGrabbed && grabinfo->sync.state >= FROZEN) || thisSynced))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue