Xi: add a comment to make a condition a bit clearer
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 28 Feb 2013 00:43:05 +0000 (10:43 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 25 Mar 2013 00:34:24 +0000 (10:34 +1000)
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>
Xi/exevents.c

index 05685a2..6779139 100644 (file)
@@ -1898,6 +1898,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;