Skip to content

Commit

Permalink
Add wlr-keyboard-modifiers-unstable protocol
Browse files Browse the repository at this point in the history
Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com>
  • Loading branch information
harishkrupo committed Nov 8, 2018
1 parent 014360a commit 0966640
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions unstable/wlr-keyboard-modifiers-unstable-v1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="wlr_keyboard_modifiers_unstable_v1">
<copyright>
Copyright © 2018 Harish Krupo

Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the name of
the copyright holders not be used in advertising or publicity
pertaining to distribution of the software without specific,
written prior permission. The copyright holders make no
representations about the suitability of this software for any
purpose. It is provided "as is" without express or implied
warranty.

THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
</copyright>

<interface name="zwlr_keyboard_modifiers_v1" version="1">
<description summary="lets client recieve the keyboard modifiers">

</description>

<request name="get_keyboard_modifiers">
<description summary="request keyboard modifier events">
Keyboard modifier events would be sent to the client when need_events
is set to 1 and keyboard to the wl_keyboard for which the events are to
be sent. To stop receiving events, set need_events to 0 with keyboard
to NULL.
This is useful for application like status bar which want to show the
current keyboard layout.
</description>
<arg name="need_events" type="uint"/>
<arg name="keyboard" type="object" interface="wl_keyboard"
allow-null="true"/>
</request>

<request name="destroy" type="destructor">
<description summary="destroy the keyboard modifier object">
Destroy the object and stop receiving the modifier events.
</description>
</request>
</interface>
</protocol>

0 comments on commit 0966640

Please sign in to comment.