summaryrefslogtreecommitdiff
path: root/include/input.h
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2012-03-07 16:06:26 -0800
committerPeter Hutterer <peter.hutterer@who-t.net>2012-03-22 11:33:20 +1000
commit58427e08a4a36ce9e213e4b4fe5249d5db2c764d (patch)
treeef705b10c8d918f0c215e87224171f4a3eabd852 /include/input.h
parente884ff8ad4df2b3272a3d8ece772906207af5142 (diff)
Xi: Fix TouchEnd to TouchUpdate change for one accepted grab
If there is only one listener of a touch, the listener is a grab, and is accepted before the touch has ended, the current code will not end the touch record when the touch does end. This change adds a listener state for when a touch is accepted but has not yet ended. We now keep the touch record alive in this state, but end it when the touch ends. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/input.h')
-rw-r--r--include/input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/input.h b/include/input.h
index a9d094437..d891fe5db 100644
--- a/include/input.h
+++ b/include/input.h
@@ -523,7 +523,8 @@ enum TouchListenerState {
LISTENER_AWAITING_OWNER, /**< Waiting for a TouchOwnership event */
LISTENER_EARLY_ACCEPT, /**< Waiting for ownership, has already
accepted */
- LISTENER_IS_OWNER, /**< Is the current owner */
+ LISTENER_IS_OWNER, /**< Is the current owner, hasn't accepted */
+ LISTENER_HAS_ACCEPTED, /**< Is the current owner, has accepted */
LISTENER_HAS_END, /**< Has already received the end event */
};