🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
6.9 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="xdg_decoration_unstable_v1">
  3. <copyright>
  4. Copyright © 2018 Simon Ser
  5. Permission is hereby granted, free of charge, to any person obtaining a
  6. copy of this software and associated documentation files (the "Software"),
  7. to deal in the Software without restriction, including without limitation
  8. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. and/or sell copies of the Software, and to permit persons to whom the
  10. Software is furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice (including the next
  12. paragraph) shall be included in all copies or substantial portions of the
  13. Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. DEALINGS IN THE SOFTWARE.
  21. </copyright>
  22. <interface name="zxdg_decoration_manager_v1" version="1">
  23. <description summary="window decoration manager">
  24. This interface allows a compositor to announce support for server-side
  25. decorations.
  26. A window decoration is a set of window controls as deemed appropriate by
  27. the party managing them, such as user interface components used to move,
  28. resize and change a window's state.
  29. A client can use this protocol to request being decorated by a supporting
  30. compositor.
  31. If compositor and client do not negotiate the use of a server-side
  32. decoration using this protocol, clients continue to self-decorate as they
  33. see fit.
  34. Warning! The protocol described in this file is experimental and
  35. backward incompatible changes may be made. Backward compatible changes
  36. may be added together with the corresponding interface version bump.
  37. Backward incompatible changes are done by bumping the version number in
  38. the protocol and interface names and resetting the interface version.
  39. Once the protocol is to be declared stable, the 'z' prefix and the
  40. version number in the protocol and interface names are removed and the
  41. interface version number is reset.
  42. </description>
  43. <request name="destroy" type="destructor">
  44. <description summary="destroy the decoration manager object">
  45. Destroy the decoration manager. This doesn't destroy objects created
  46. with the manager.
  47. </description>
  48. </request>
  49. <request name="get_toplevel_decoration">
  50. <description summary="create a new toplevel decoration object">
  51. Create a new decoration object associated with the given toplevel.
  52. Creating an xdg_toplevel_decoration from an xdg_toplevel which has a
  53. buffer attached or committed is a client error, and any attempts by a
  54. client to attach or manipulate a buffer prior to the first
  55. xdg_toplevel_decoration.configure event must also be treated as
  56. errors.
  57. </description>
  58. <arg name="id" type="new_id" interface="zxdg_toplevel_decoration_v1"/>
  59. <arg name="toplevel" type="object" interface="xdg_toplevel"/>
  60. </request>
  61. </interface>
  62. <interface name="zxdg_toplevel_decoration_v1" version="1">
  63. <description summary="decoration object for a toplevel surface">
  64. The decoration object allows the compositor to toggle server-side window
  65. decorations for a toplevel surface. The client can request to switch to
  66. another mode.
  67. The xdg_toplevel_decoration object must be destroyed before its
  68. xdg_toplevel.
  69. </description>
  70. <enum name="error">
  71. <entry name="unconfigured_buffer" value="0"
  72. summary="xdg_toplevel has a buffer attached before configure"/>
  73. <entry name="already_constructed" value="1"
  74. summary="xdg_toplevel already has a decoration object"/>
  75. <entry name="orphaned" value="2"
  76. summary="xdg_toplevel destroyed before the decoration object"/>
  77. </enum>
  78. <request name="destroy" type="destructor">
  79. <description summary="destroy the decoration object">
  80. Switch back to a mode without any server-side decorations at the next
  81. commit.
  82. </description>
  83. </request>
  84. <enum name="mode">
  85. <description summary="window decoration modes">
  86. These values describe window decoration modes.
  87. </description>
  88. <entry name="client_side" value="1"
  89. summary="no server-side window decoration"/>
  90. <entry name="server_side" value="2"
  91. summary="server-side window decoration"/>
  92. </enum>
  93. <request name="set_mode">
  94. <description summary="set the decoration mode">
  95. Set the toplevel surface decoration mode. This informs the compositor
  96. that the client prefers the provided decoration mode.
  97. After requesting a decoration mode, the compositor will respond by
  98. emitting a xdg_surface.configure event. The client should then update
  99. its content, drawing it without decorations if the received mode is
  100. server-side decorations. The client must also acknowledge the configure
  101. when committing the new content (see xdg_surface.ack_configure).
  102. The compositor can decide not to use the client's mode and enforce a
  103. different mode instead.
  104. Clients whose decoration mode depend on the xdg_toplevel state may send
  105. a set_mode request in response to a xdg_surface.configure event and wait
  106. for the next xdg_surface.configure event to prevent unwanted state.
  107. Such clients are responsible for preventing configure loops and must
  108. make sure not to send multiple successive set_mode requests with the
  109. same decoration mode.
  110. </description>
  111. <arg name="mode" type="uint" enum="mode" summary="the decoration mode"/>
  112. </request>
  113. <request name="unset_mode">
  114. <description summary="unset the decoration mode">
  115. Unset the toplevel surface decoration mode. This informs the compositor
  116. that the client doesn't prefer a particular decoration mode.
  117. This request has the same semantics as set_mode.
  118. </description>
  119. </request>
  120. <event name="configure">
  121. <description summary="suggest a surface change">
  122. The configure event asks the client to change its decoration mode. The
  123. configured state should not be applied immediately. Clients must send an
  124. ack_configure in response to this event. See xdg_surface.configure and
  125. xdg_surface.ack_configure for details.
  126. A configure event can be sent at any time. The specified mode must be
  127. obeyed by the client.
  128. </description>
  129. <arg name="mode" type="uint" enum="mode" summary="the decoration mode"/>
  130. </event>
  131. </interface>
  132. </protocol>