This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Add wlr-keyboard-modifiers-unstable protocol #31
Open
harishkrupo
wants to merge
1
commit into
swaywm:master
Choose a base branch
from
harishkrupo:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+70
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?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_wlr_keyboard"> | ||
<description summary="Create a wrapper over wl_keyboard"> | ||
Retruns a wrapper for the wl_keyboard passed as an argument. The | ||
wlr_keyboard can then be used to listen for modifier events even when | ||
the client is not focussed. | ||
</description> | ||
<arg name="id" type="new_id" interface="zwlr_keyboard_v1"/> | ||
<arg name="keyboard" type="object" interface="wl_keyboard"/> | ||
</request> | ||
|
||
<request name="release" type="destructor"> | ||
<description summary="destroy Keyboard modifiers"/> | ||
</request> | ||
|
||
</interface> | ||
|
||
<interface name="zwlr_keyboard_v1" version="1"> | ||
<event name="modifiers"> | ||
<description summary="modifier and group state"> | ||
Notifies clients that the modifier and/or group state has | ||
changed, and it should update its local state. | ||
</description> | ||
<arg name="serial" type="uint" summary="serial number of the modifiers event"/> | ||
<arg name="mods_depressed" type="uint" summary="depressed modifiers"/> | ||
<arg name="mods_latched" type="uint" summary="latched modifiers"/> | ||
<arg name="mods_locked" type="uint" summary="locked modifiers"/> | ||
<arg name="group" type="uint" summary="keyboard layout"/> | ||
</event> | ||
|
||
<request name="destroy" type="destructor"> | ||
<description summary="destroy the wlr_keyboard object"> | ||
Destroy the object and stop receiving the modifier events. | ||
</description> | ||
</request> | ||
|
||
</interface> | ||
|
||
</protocol> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.