[PATCH wayland] protocol: add repeat_info event to wl_keyboard

Jonny Lamb jonnylamb at jonnylamb.com
Tue Jul 16 01:31:02 PDT 2013


In the process wl_keyboard's version has bben incremented. Given
clients get the wl_keyboard from wl_seat without a version, wl_seat's
version has also been incremented (wl_seat version 3 implies
wl_keyboard version 2).
---
 protocol/wayland.xml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 1442b6a..20b341a 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -1172,7 +1172,7 @@
     </request>
    </interface>
 
-  <interface name="wl_seat" version="2">
+  <interface name="wl_seat" version="3">
     <description summary="group of input devices">
       A seat is a group of keyboards, pointer and touch devices. This
       object is published as a global during start up, or when such a
@@ -1393,7 +1393,7 @@
     </event>
   </interface>
 
-  <interface name="wl_keyboard" version="1">
+  <interface name="wl_keyboard" version="2">
     <description summary="keyboard input device">
       The wl_keyboard interface represents one or more keyboards
       associated with a seat.
@@ -1474,6 +1474,19 @@
       <arg name="mods_locked" type="uint"/>
       <arg name="group" type="uint"/>
     </event>
+
+    <!-- Version 2 of additions -->
+
+    <event name="repeat_info" since="2">
+      <description summary="repeat rate and delay">
+        Informs the client about the keyboard's repeat rate and delay.
+      </description>
+
+      <arg name="rate" type="int"
+           summary="the rate of repeating keys in characters per second"/>
+      <arg name="delay" type="int"
+           summary="time in milliseconds between keys repeating"/>
+    </event>
   </interface>
 
   <interface name="wl_touch" version="1">
-- 
1.8.3.2



More information about the wayland-devel mailing list