diff options
author | Chase Douglas <chase.douglas@canonical.com> | 2012-02-03 16:19:11 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-02-08 18:04:15 +1000 |
commit | 6241b5e4fdbdb08d30cc8787d858ac27122d2d49 (patch) | |
tree | cdcc1fa57838d2d2a9171cc29b45d54c7f05046e /include | |
parent | b0c54856df71f9cabf9dad176fdade960ef8c5d9 (diff) |
Implement touch early accept
This doesn't really implement early accept as it should. Ideally, the
server should send end events to all subsequent touch clients as soon as
an early accept comes in. However, this implementation is still protocol
compliant. We can always improve it later.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h index fea5a31b8..b7825a762 100644 --- a/include/input.h +++ b/include/input.h @@ -583,6 +583,8 @@ extern _X_EXPORT void FreeInputAttributes(InputAttributes *attrs); enum TouchListenerState{ LISTENER_AWAITING_BEGIN = 0, /**< Waiting for a TouchBegin event */ 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_HAS_END, /**< Has already received the end event */ }; |