summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-02-28 10:43:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-04-02 15:50:08 +1000
commitbce06afc99ce1d948f9002e0c5c7bc29d66425da (patch)
tree699da4b88df014c5ddaa3c4243718769068db172 /Xi
parent8e16c2e3038c1c17cae73d8d9681dccce0fd402a (diff)
Xi: add a comment to make a condition a bit clearer
The commit message to 676447190190d8546165e21be242cf16dd69f5ae explains it, but that doesn't stop the WTF moment when reading the code. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 2967391c6d35f03121afa8003e0fb94b62495129)
Diffstat (limited to 'Xi')
-rw-r--r--Xi/exevents.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 609b1268f..f05e03d73 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -1896,6 +1896,7 @@ DeliverTouchEndEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent *ev,
goto out;
}
+ /* A client is waiting for the begin, don't give it a TouchEnd */
if (listener->state == LISTENER_AWAITING_BEGIN) {
listener->state = LISTENER_HAS_END;
goto out;