mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-02 08:50:09 +01:00
Xi: return !Success from DeliverTouchEmulatedEvent if we didn't deliver
All callers currently ignore the new value, so this patch has no effect.
Inverse call graph:
DeliverTouchEmulatedEvent
DeliverEmulatedMotionEvent Ignores value
DeliverTouchBeginEvent
DeliverTouchEvent
DeliverTouchEvents Ignores value
DeliverTouchEndEvent
DeliverTouchEvent
DeliverTouchEvents Ignores value
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 9978b57b8d)
This commit is contained in:
parent
c203568905
commit
2cd62dc02b
1 changed files with 2 additions and 2 deletions
|
|
@ -1373,7 +1373,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
|
|||
|
||||
/* We don't deliver pointer events to non-owners */
|
||||
if (!TouchResourceIsOwner(ti, listener->listener))
|
||||
return Success;
|
||||
return !Success;
|
||||
|
||||
nevents = TouchConvertToPointerEvent(ev, &motion, &button);
|
||||
BUG_RETURN_VAL(nevents == 0, BadValue);
|
||||
|
|
@ -1395,7 +1395,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
|
|||
/* 'grab' is the passive grab, but if the grab isn't active,
|
||||
* don't deliver */
|
||||
if (!dev->deviceGrab.grab)
|
||||
return Success;
|
||||
return !Success;
|
||||
|
||||
if (grab->ownerEvents) {
|
||||
WindowPtr focus = NullWindow;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue