Commit 9978b57b authored by Peter Hutterer's avatar Peter Hutterer

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's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
parent cc3d1a5a
...@@ -1376,7 +1376,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, ...@@ -1376,7 +1376,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
/* We don't deliver pointer events to non-owners */ /* We don't deliver pointer events to non-owners */
if (!TouchResourceIsOwner(ti, listener->listener)) if (!TouchResourceIsOwner(ti, listener->listener))
return Success; return !Success;
nevents = TouchConvertToPointerEvent(ev, &motion, &button); nevents = TouchConvertToPointerEvent(ev, &motion, &button);
BUG_RETURN_VAL(nevents == 0, BadValue); BUG_RETURN_VAL(nevents == 0, BadValue);
...@@ -1398,7 +1398,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, ...@@ -1398,7 +1398,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
/* 'grab' is the passive grab, but if the grab isn't active, /* 'grab' is the passive grab, but if the grab isn't active,
* don't deliver */ * don't deliver */
if (!dev->deviceGrab.grab) if (!dev->deviceGrab.grab)
return Success; return !Success;
if (grab->ownerEvents) { if (grab->ownerEvents) {
WindowPtr focus = NullWindow; WindowPtr focus = NullWindow;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment