mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 08:10:03 +01:00
Xi: only activate the device grab if we don't already have one
If the device is already grabbed, don't activate the passive grab, it screws with our event masks. Just deliver to the grabbing client instead. Reported-by: Carlos Garnacho <carlosg@gnome.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
parent
475ef5cc83
commit
2bb282cd45
1 changed files with 2 additions and 2 deletions
|
|
@ -1385,7 +1385,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent
|
|||
if (grab)
|
||||
{
|
||||
/* this side-steps the usual activation mechansims, but... */
|
||||
if (ev->any.type == ET_TouchBegin)
|
||||
if (ev->any.type == ET_TouchBegin && !dev->deviceGrab.grab)
|
||||
ActivatePassiveGrab(dev, grab, ptrev, ev); /* also delivers the event */
|
||||
else {
|
||||
int deliveries = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue