Blame uwac/protocols/keyboard-shortcuts-inhibit-unstable-v1.xml

Packit Service fa4841
Packit Service fa4841
<protocol name="keyboard_shortcuts_inhibit_unstable_v1">
Packit Service fa4841
Packit Service fa4841
  <copyright>
Packit Service fa4841
    Copyright © 2017 Red Hat Inc.
Packit Service fa4841
Packit Service fa4841
    Permission is hereby granted, free of charge, to any person obtaining a
Packit Service fa4841
    copy of this software and associated documentation files (the "Software"),
Packit Service fa4841
    to deal in the Software without restriction, including without limitation
Packit Service fa4841
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
Packit Service fa4841
    and/or sell copies of the Software, and to permit persons to whom the
Packit Service fa4841
    Software is furnished to do so, subject to the following conditions:
Packit Service fa4841
Packit Service fa4841
    The above copyright notice and this permission notice (including the next
Packit Service fa4841
    paragraph) shall be included in all copies or substantial portions of the
Packit Service fa4841
    Software.
Packit Service fa4841
Packit Service fa4841
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit Service fa4841
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit Service fa4841
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
Packit Service fa4841
    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit Service fa4841
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Packit Service fa4841
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
Packit Service fa4841
    DEALINGS IN THE SOFTWARE.
Packit Service fa4841
  </copyright>
Packit Service fa4841
Packit Service fa4841
  <description summary="Protocol for inhibiting the compositor keyboard shortcuts">
Packit Service fa4841
    This protocol specifies a way for a client to request the compositor
Packit Service fa4841
    to ignore its own keyboard shortcuts for a given seat, so that all
Packit Service fa4841
    key events from that seat get forwarded to a surface.
Packit Service fa4841
Packit Service fa4841
    Warning! The protocol described in this file is experimental and
Packit Service fa4841
    backward incompatible changes may be made. Backward compatible
Packit Service fa4841
    changes may be added together with the corresponding interface
Packit Service fa4841
    version bump.
Packit Service fa4841
    Backward incompatible changes are done by bumping the version
Packit Service fa4841
    number in the protocol and interface names and resetting the
Packit Service fa4841
    interface version. Once the protocol is to be declared stable,
Packit Service fa4841
    the 'z' prefix and the version number in the protocol and
Packit Service fa4841
    interface names are removed and the interface version number is
Packit Service fa4841
    reset.
Packit Service fa4841
  </description>
Packit Service fa4841
Packit Service fa4841
  <interface name="zwp_keyboard_shortcuts_inhibit_manager_v1" version="1">
Packit Service fa4841
    <description summary="context object for keyboard grab_manager">
Packit Service fa4841
      A global interface used for inhibiting the compositor keyboard shortcuts.
Packit Service fa4841
    </description>
Packit Service fa4841
Packit Service fa4841
    <request name="destroy" type="destructor">
Packit Service fa4841
      <description summary="destroy the keyboard shortcuts inhibitor object">
Packit Service fa4841
	Destroy the keyboard shortcuts inhibitor manager.
Packit Service fa4841
      </description>
Packit Service fa4841
    </request>
Packit Service fa4841
Packit Service fa4841
    <request name="inhibit_shortcuts">
Packit Service fa4841
      <description summary="create a new keyboard shortcuts inhibitor object">
Packit Service fa4841
	Create a new keyboard shortcuts inhibitor object associated with
Packit Service fa4841
	the given surface for the given seat.
Packit Service fa4841
Packit Service fa4841
	If shortcuts are already inhibited for the specified seat and surface,
Packit Service fa4841
	a protocol error "already_inhibited" is raised by the compositor.
Packit Service fa4841
      </description>
Packit Service fa4841
      <arg name="id" type="new_id" interface="zwp_keyboard_shortcuts_inhibitor_v1"/>
Packit Service fa4841
      
Packit Service fa4841
	   summary="the surface that inhibits the keyboard shortcuts behavior"/>
Packit Service fa4841
      
Packit Service fa4841
	   summary="the wl_seat for which keyboard shortcuts should be disabled"/>
Packit Service fa4841
    </request>
Packit Service fa4841
Packit Service fa4841
    <enum name="error">
Packit Service fa4841
      
Packit Service fa4841
	     value="0"
Packit Service fa4841
	     summary="the shortcuts are already inhibited for this surface"/>
Packit Service fa4841
    </enum>
Packit Service fa4841
  </interface>
Packit Service fa4841
Packit Service fa4841
  <interface name="zwp_keyboard_shortcuts_inhibitor_v1" version="1">
Packit Service fa4841
    <description summary="context object for keyboard shortcuts inhibitor">
Packit Service fa4841
      A keyboard shortcuts inhibitor instructs the compositor to ignore
Packit Service fa4841
      its own keyboard shortcuts when the associated surface has keyboard
Packit Service fa4841
      focus. As a result, when the surface has keyboard focus on the given
Packit Service fa4841
      seat, it will receive all key events originating from the specified
Packit Service fa4841
      seat, even those which would normally be caught by the compositor for
Packit Service fa4841
      its own shortcuts.
Packit Service fa4841
Packit Service fa4841
      The Wayland compositor is however under no obligation to disable
Packit Service fa4841
      all of its shortcuts, and may keep some special key combo for its own
Packit Service fa4841
      use, including but not limited to one allowing the user to forcibly
Packit Service fa4841
      restore normal keyboard events routing in the case of an unwilling
Packit Service fa4841
      client. The compositor may also use the same key combo to reactivate
Packit Service fa4841
      an existing shortcut inhibitor that was previously deactivated on
Packit Service fa4841
      user request.
Packit Service fa4841
Packit Service fa4841
      When the compositor restores its own keyboard shortcuts, an
Packit Service fa4841
      "inactive" event is emitted to notify the client that the keyboard
Packit Service fa4841
      shortcuts inhibitor is not effectively active for the surface and
Packit Service fa4841
      seat any more, and the client should not expect to receive all
Packit Service fa4841
      keyboard events.
Packit Service fa4841
Packit Service fa4841
      When the keyboard shortcuts inhibitor is inactive, the client has
Packit Service fa4841
      no way to forcibly reactivate the keyboard shortcuts inhibitor.
Packit Service fa4841
Packit Service fa4841
      The user can chose to re-enable a previously deactivated keyboard
Packit Service fa4841
      shortcuts inhibitor using any mechanism the compositor may offer,
Packit Service fa4841
      in which case the compositor will send an "active" event to notify
Packit Service fa4841
      the client.
Packit Service fa4841
Packit Service fa4841
      If the surface is destroyed, unmapped, or loses the seat's keyboard
Packit Service fa4841
      focus, the keyboard shortcuts inhibitor becomes irrelevant and the
Packit Service fa4841
      compositor will restore its own keyboard shortcuts but no "inactive"
Packit Service fa4841
      event is emitted in this case.
Packit Service fa4841
    </description>
Packit Service fa4841
Packit Service fa4841
    <request name="destroy" type="destructor">
Packit Service fa4841
      <description summary="destroy the keyboard shortcuts inhibitor object">
Packit Service fa4841
	Remove the keyboard shortcuts inhibitor from the associated wl_surface.
Packit Service fa4841
      </description>
Packit Service fa4841
    </request>
Packit Service fa4841
Packit Service fa4841
    <event name="active">
Packit Service fa4841
      <description summary="shortcuts are inhibited">
Packit Service fa4841
	This event indicates that the shortcut inhibitor is active.
Packit Service fa4841
Packit Service fa4841
	The compositor sends this event every time compositor shortcuts
Packit Service fa4841
	are inhibited on behalf of the surface. When active, the client
Packit Service fa4841
	may receive input events normally reserved by the compositor
Packit Service fa4841
	(see zwp_keyboard_shortcuts_inhibitor_v1).
Packit Service fa4841
Packit Service fa4841
	This occurs typically when the initial request "inhibit_shortcuts"
Packit Service fa4841
	first becomes active or when the user instructs the compositor to
Packit Service fa4841
	re-enable and existing shortcuts inhibitor using any mechanism
Packit Service fa4841
	offered by the compositor.
Packit Service fa4841
      </description>
Packit Service fa4841
    </event>
Packit Service fa4841
Packit Service fa4841
    <event name="inactive">
Packit Service fa4841
      <description summary="shortcuts are restored">
Packit Service fa4841
	This event indicates that the shortcuts inhibitor is inactive,
Packit Service fa4841
	normal shortcuts processing is restored by the compositor.
Packit Service fa4841
       </description>
Packit Service fa4841
    </event>
Packit Service fa4841
  </interface>
Packit Service fa4841
</protocol>