From 362c4c392a302d734db062281577bd19c4dc4ae0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 25 Jul 2024 12:13:10 +1000 Subject: [PATCH] proto: remove vestiges of ei_device.capability This is now obsolete after [1]. The ei_device.interface event announces which interfaces are available on the device so we don't need documentation to say "it's a bug to send this request if the device doesn't have the capability" since the client won't have the interface to begin with. Fixes: a902d5dbd859 ("protocol: replace the capabilities enum with an interface list") --- proto/protocol.xml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/proto/protocol.xml b/proto/protocol.xml index 8f6144b..060d13d 100644 --- a/proto/protocol.xml +++ b/proto/protocol.xml @@ -900,8 +900,7 @@ - Interface for pointer motion requests and events. This interface - is available on devices with the ei_device.capability pointer. + Interface for pointer motion requests and events. This interface is only provided once per device and where a client requests ei_pointer.release the interface does not get re-initialized. An @@ -929,9 +928,6 @@ It is a client bug to send this request more than once within the same ei_device.frame. - It is a client bug to send this request on a device without - the ei_device.capabilities.pointer capability. - It is a protocol violation to send this request for a client of an ei_handshake.context_type other than sender. @@ -967,8 +963,7 @@ - Interface for absolute pointer requests and events. This interface - is available on devices with the ei_device.capability pointer_absolute. + Interface for absolute pointer requests and events. This interface is only provided once per device and where a client requests ei_pointer_absolute.release the interface does not get @@ -998,9 +993,6 @@ It is a client bug to send this request more than once within the same ei_device.frame. - It is a client bug to send this request on a device without - the ei_device.capabilities.pointer_absolute capability. - It is a protocol violation to send this request for a client of an ei_handshake.context_type other than sender. @@ -1036,8 +1028,7 @@ - Interface for scroll requests and events. This interface - is available on devices with the ei_device.capability scroll. + Interface for scroll requests and events. This interface is only provided once per device and where a client requests ei_scroll.release the interface does not get @@ -1175,8 +1166,7 @@ - Interface for button requests and events. This interface - is available on devices with the ei_device.capability button. + Interface for button requests and events. This interface is only provided once per device and where a client requests ei_button.release the interface does not get @@ -1251,8 +1241,7 @@ - Interface for keyboard requests and events. This interface - is available on devices with the ei_device.capability keyboard. + Interface for keyboard requests and events. This interface is only provided once per device and where a client requests ei_keyboard.release the interface does not get re-initialized. An @@ -1384,8 +1373,7 @@ - Interface for touchscreen requests and events. This interface - is available on devices with the ei_device.capability touchscreen. + Interface for touchscreen requests and events. This interface is only provided once per device and where a client requests ei_touchscreen.release the interface does not get re-initialized. An