Add wl_keyboard::keymap event
authorDaniel Stone <daniel@fooishbar.org>
Fri, 1 Jun 2012 11:13:37 +0000 (12:13 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 1 Jun 2012 14:35:48 +0000 (10:35 -0400)
With this event, the compositor generates one canonical keymap for all
clients, and then sends an mmap()able fd over the wire, rather than all
the clients generating possibly disparate keymaps.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
protocol/wayland.xml

index 9d93f4a..e9c6787 100644 (file)
     <description summary="keyboard input device">
     </description>
 
+    <enum name="keymap_format">
+      <description summary="keyboard mapping format">
+        This enum specifies the format of the keymap provided to the client
+       with the wl_keyboard::keymap event.
+      </description>
+      <entry name="xkb_v1" value="1" description="libxkbcommon compatible"/>
+    </enum>
+
+    <event name="keymap">
+      <description summary="keyboard mapping">
+        This event provides a file descriptor to the client which can be
+       memory-mapped to provide a keyboard mapping description.
+      </description>
+      <arg name="format" type="uint"/>
+      <arg name="fd" type="fd"/>
+      <arg name="size" type="uint"/>
+    </event>
+
     <event name="enter">
       <arg name="serial" type="uint"/>
       <arg name="surface" type="object" interface="wl_surface"/>