mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-03-06 09:20:44 +01:00
dix: don't allow overriding a grab with a different type of grab (#58255)
If a client has a core grab, don't allow re-grabbing with type XI2, etc.
This was the intent of the original commit
xorg-server-1.5.99.1-782-g09f9a86, but ineffective.
X.Org Bug 58255 <http://bugs.freedesktop.org/show_bug.cgi?id=58255>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit dd3242c87a)
This commit is contained in:
parent
7800cf99f5
commit
d5142c4e9d
1 changed files with 1 additions and 1 deletions
|
|
@ -5027,7 +5027,7 @@ GrabDevice(ClientPtr client, DeviceIntPtr dev,
|
|||
grab = grabInfo->grab;
|
||||
if (grab && grab->grabtype != grabtype)
|
||||
*status = AlreadyGrabbed;
|
||||
if (grab && !SameClient(grab, client))
|
||||
else if (grab && !SameClient(grab, client))
|
||||
*status = AlreadyGrabbed;
|
||||
else if ((!pWin->realized) ||
|
||||
(confineTo &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue