mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-07 14:18:16 +02:00
specs: clarify button state in touch events
Emulated pointer events will have button 1 logically down, but touch events only represent the actual button state, irrespective of the touches. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
parent
b1d71fe4cd
commit
8687f155d8
1 changed files with 7 additions and 2 deletions
|
|
@ -467,10 +467,12 @@ Pointer events are emulated as follows:
|
|||
touch with the same axis values of the touch event, followed by a button press
|
||||
event for button 1.
|
||||
- A TouchUpdate event generates a pointer motion event to the location of the
|
||||
touch and/or to update axis values of the pointer device.
|
||||
touch and/or to update axis values of the pointer device. The button state
|
||||
as seen from the protocol includes button 1 set.
|
||||
- A TouchEnd event generates a pointer motion event to the location of the touch
|
||||
and/or to update the axis values if either have changed, followed by a button
|
||||
release event for button 1.
|
||||
release event for button 1. The button state as seen from the protocol
|
||||
includes button 1 set.
|
||||
|
||||
If a touch sequence emulates pointer events and an emulated pointer event
|
||||
triggers the activation of a passive grab, the grabbing client becomes the
|
||||
|
|
@ -2150,6 +2152,9 @@ of IDs. The increment between two touch IDs is indeterminate. Clients may not
|
|||
assume that any future touches will have specific touch IDs. IDs are globally
|
||||
unique.
|
||||
|
||||
The button state in touch events represents the state of the device's
|
||||
physical buttons only, even if that sequence is emulating pointer events.
|
||||
|
||||
Touch events do not generate enter/leave events.
|
||||
|
||||
[[events-rawevent]]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue