+++ /dev/null
-<protocol name="keyrouter">
- <interface name="wl_keyrouter" version="1">
- <description summary="an interface to set each focus for each key">
- In tradition, all the keys in a keyboard and a device on which
- some keys are attached will be sent to focus surface by default.
- Currently it's possible to set up each focus for each key in a keyboard and a device.
- Therefore, by setting a key grab for a surface, the owner of the
- surface will get the key event when it has the key grab for the key.
- </description>
-
- <enum name="error">
- <entry name="none" value="0" summary="no error"/>
- <entry name="invalid_surface" value="1" summary="Given surface is invalid."/>
- <entry name="invalid_key" value="2" summary="Given key is invalid."/>
- <entry name="invalid_mode" value="3" summary="Given mode is invalid."/>
- <entry name="grabbed_already" value="4" summary="The key has been grabbed already."/>
- <entry name="no_permission" value="5" summary="The wl client has no permission to grab the key."/>
- <entry name="no_system_resources" value="6" summary="System resources are insufficient."/>
- </enum>
-
- <enum name="mode">
- <description summary="mode for a key grab">
- This value is used to set a mode for a key grab. With this mode and
- the order of the surface between surfaces' stack, the compositor will determine the destination client
- surface.
- </description>
- <entry name="none" value="0" summary="none"/>
- <entry name="shared" value="1"
- summary="mode to get a key grab with the other client surfaces when the focused client surface gets the key"/>
- <entry name="topmost" value="2"
- summary="mode to get a key grab when the client surface is the top most surface"/>
- <entry name="overridable_exclusive" value="3"
- summary="mode to get a key grab exclusively, overridably regardless of the order in the surface stack"/>
- <entry name="exclusive" value="4"
- summary="mode to get a key grab exclusively regardless of the order in surface stack"/>
- </enum>
-
- <request name="set_keygrab">
- <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
- <arg name="key" type="uint"/>
- <arg name="mode" type="uint"/>
- </request>
-
- <request name="unset_keygrab">
- <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
- <arg name="key" type="uint"/>
- </request>
-
- <request name="get_keygrab_status">
- <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
- <arg name="key" type="uint"/>
- </request>
-
- <event name="keygrab_notify">
- <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
- <arg name="key" type="uint"/>
- <arg name="mode" type="uint"/>
- <arg name="error" type="uint"/>
- </event>
- </interface>
-</protocol>
-
--- /dev/null
+<protocol name="wl_keyrouter">
+ <interface name="wl_keyrouter" version="1">
+ <description summary="an interface to set each focus for each key">
+ In tradition, all the keys in a keyboard and a device on which
+ some keys are attached will be sent to focus surface by default.
+ Currently it's possible to set up each focus for each key in a keyboard and a device.
+ Therefore, by setting a key grab for a surface, the owner of the
+ surface will get the key event when it has the key grab for the key.
+ </description>
+
+ <enum name="error">
+ <entry name="none" value="0" summary="no error"/>
+ <entry name="invalid_surface" value="1" summary="Given surface is invalid."/>
+ <entry name="invalid_key" value="2" summary="Given key is invalid."/>
+ <entry name="invalid_mode" value="3" summary="Given mode is invalid."/>
+ <entry name="grabbed_already" value="4" summary="The key has been grabbed already."/>
+ <entry name="no_permission" value="5" summary="The wl client has no permission to grab the key."/>
+ <entry name="no_system_resources" value="6" summary="System resources are insufficient."/>
+ </enum>
+
+ <enum name="mode">
+ <description summary="mode for a key grab">
+ This value is used to set a mode for a key grab. With this mode and
+ the order of the surface between surfaces' stack, the compositor will determine the destination client
+ surface.
+ </description>
+ <entry name="none" value="0" summary="none"/>
+ <entry name="shared" value="1"
+ summary="mode to get a key grab with the other client surfaces when the focused client surface gets the key"/>
+ <entry name="topmost" value="2"
+ summary="mode to get a key grab when the client surface is the top most surface"/>
+ <entry name="overridable_exclusive" value="3"
+ summary="mode to get a key grab exclusively, overridably regardless of the order in the surface stack"/>
+ <entry name="exclusive" value="4"
+ summary="mode to get a key grab exclusively regardless of the order in surface stack"/>
+ </enum>
+
+ <request name="set_keygrab">
+ <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
+ <arg name="key" type="uint"/>
+ <arg name="mode" type="uint"/>
+ </request>
+
+ <request name="unset_keygrab">
+ <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
+ <arg name="key" type="uint"/>
+ </request>
+
+ <request name="get_keygrab_status">
+ <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
+ <arg name="key" type="uint"/>
+ </request>
+
+ <event name="keygrab_notify">
+ <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
+ <arg name="key" type="uint"/>
+ <arg name="mode" type="uint"/>
+ <arg name="error" type="uint"/>
+ </event>
+ </interface>
+</protocol>
+