Commit 21fad23a authored by Simon Ser's avatar Simon Ser Committed by Daniel Stone
Browse files

protocol: add seat missing_capability error



The protocol says:

> It is a protocol violation to issue this request on a seat that
> has never had the pointer capability.

But never defines an error code.
Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Closes: #165
parent cf20f241
Pipeline #156618 passed with stages
in 2 minutes and 27 seconds
...@@ -1743,6 +1743,14 @@ ...@@ -1743,6 +1743,14 @@
<entry name="touch" value="4" summary="the seat has touch devices"/> <entry name="touch" value="4" summary="the seat has touch devices"/>
</enum> </enum>
<enum name="error">
<description summary="wl_seat error values">
These errors can be emitted in response to wl_seat requests.
</description>
<entry name="missing_capability" value="0"
summary="get_pointer, get_keyboard or get_touch called on seat without the matching capability"/>
</enum>
<event name="capabilities"> <event name="capabilities">
<description summary="seat capabilities changed"> <description summary="seat capabilities changed">
This is emitted whenever a seat gains or loses the pointer, This is emitted whenever a seat gains or loses the pointer,
...@@ -1781,7 +1789,8 @@ ...@@ -1781,7 +1789,8 @@
This request only takes effect if the seat has the pointer This request only takes effect if the seat has the pointer
capability, or has had the pointer capability in the past. capability, or has had the pointer capability in the past.
It is a protocol violation to issue this request on a seat that has It is a protocol violation to issue this request on a seat that has
never had the pointer capability. never had the pointer capability. The missing_capability error will
be sent in this case.
</description> </description>
<arg name="id" type="new_id" interface="wl_pointer" summary="seat pointer"/> <arg name="id" type="new_id" interface="wl_pointer" summary="seat pointer"/>
</request> </request>
...@@ -1794,7 +1803,8 @@ ...@@ -1794,7 +1803,8 @@
This request only takes effect if the seat has the keyboard This request only takes effect if the seat has the keyboard
capability, or has had the keyboard capability in the past. capability, or has had the keyboard capability in the past.
It is a protocol violation to issue this request on a seat that has It is a protocol violation to issue this request on a seat that has
never had the keyboard capability. never had the keyboard capability. The missing_capability error will
be sent in this case.
</description> </description>
<arg name="id" type="new_id" interface="wl_keyboard" summary="seat keyboard"/> <arg name="id" type="new_id" interface="wl_keyboard" summary="seat keyboard"/>
</request> </request>
...@@ -1807,7 +1817,8 @@ ...@@ -1807,7 +1817,8 @@
This request only takes effect if the seat has the touch This request only takes effect if the seat has the touch
capability, or has had the touch capability in the past. capability, or has had the touch capability in the past.
It is a protocol violation to issue this request on a seat that has It is a protocol violation to issue this request on a seat that has
never had the touch capability. never had the touch capability. The missing_capability error will
be sent in this case.
</description> </description>
<arg name="id" type="new_id" interface="wl_touch" summary="seat touch interface"/> <arg name="id" type="new_id" interface="wl_touch" summary="seat touch interface"/>
</request> </request>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment