logo

inaban

Distrustful Wayland Compositor (inspired by XMonad and dwm) git clone https://hacktivis.me/git/inaban.git

wlr-layer-shell-unstable-v1.xml (13368B)


  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="wlr_layer_shell_unstable_v1">
  3. <copyright>
  4. Copyright © 2017 Drew DeVault
  5. Permission to use, copy, modify, distribute, and sell this
  6. software and its documentation for any purpose is hereby granted
  7. without fee, provided that the above copyright notice appear in
  8. all copies and that both that copyright notice and this permission
  9. notice appear in supporting documentation, and that the name of
  10. the copyright holders not be used in advertising or publicity
  11. pertaining to distribution of the software without specific,
  12. written prior permission. The copyright holders make no
  13. representations about the suitability of this software for any
  14. purpose. It is provided "as is" without express or implied
  15. warranty.
  16. THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  17. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  18. FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  20. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  21. AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  23. THIS SOFTWARE.
  24. </copyright>
  25. <interface name="zwlr_layer_shell_v1" version="1">
  26. <description summary="create surfaces that are layers of the desktop">
  27. Clients can use this interface to assign the surface_layer role to
  28. wl_surfaces. Such surfaces are assigned to a "layer" of the output and
  29. rendered with a defined z-depth respective to each other. They may also be
  30. anchored to the edges and corners of a screen and specify input handling
  31. semantics. This interface should be suitable for the implementation of
  32. many desktop shell components, and a broad number of other applications
  33. that interact with the desktop.
  34. </description>
  35. <request name="get_layer_surface">
  36. <description summary="create a layer_surface from a surface">
  37. Create a layer surface for an existing surface. This assigns the role of
  38. layer_surface, or raises a protocol error if another role is already
  39. assigned.
  40. Creating a layer surface from a wl_surface which has a buffer attached
  41. or committed is a client error, and any attempts by a client to attach
  42. or manipulate a buffer prior to the first layer_surface.configure call
  43. must also be treated as errors.
  44. You may pass NULL for output to allow the compositor to decide which
  45. output to use. Generally this will be the one that the user most
  46. recently interacted with.
  47. Clients can specify a namespace that defines the purpose of the layer
  48. surface.
  49. </description>
  50. <arg name="id" type="new_id" interface="zwlr_layer_surface_v1"/>
  51. <arg name="surface" type="object" interface="wl_surface"/>
  52. <arg name="output" type="object" interface="wl_output" allow-null="true"/>
  53. <arg name="layer" type="uint" enum="layer" summary="layer to add this surface to"/>
  54. <arg name="namespace" type="string" summary="namespace for the layer surface"/>
  55. </request>
  56. <enum name="error">
  57. <entry name="role" value="0" summary="wl_surface has another role"/>
  58. <entry name="invalid_layer" value="1" summary="layer value is invalid"/>
  59. <entry name="already_constructed" value="2" summary="wl_surface has a buffer attached or committed"/>
  60. </enum>
  61. <enum name="layer">
  62. <description summary="available layers for surfaces">
  63. These values indicate which layers a surface can be rendered in. They
  64. are ordered by z depth, bottom-most first. Traditional shell surfaces
  65. will typically be rendered between the bottom and top layers.
  66. Fullscreen shell surfaces are typically rendered at the top layer.
  67. Multiple surfaces can share a single layer, and ordering within a
  68. single layer is undefined.
  69. </description>
  70. <entry name="background" value="0"/>
  71. <entry name="bottom" value="1"/>
  72. <entry name="top" value="2"/>
  73. <entry name="overlay" value="3"/>
  74. </enum>
  75. </interface>
  76. <interface name="zwlr_layer_surface_v1" version="1">
  77. <description summary="layer metadata interface">
  78. An interface that may be implemented by a wl_surface, for surfaces that
  79. are designed to be rendered as a layer of a stacked desktop-like
  80. environment.
  81. Layer surface state (size, anchor, exclusive zone, margin, interactivity)
  82. is double-buffered, and will be applied at the time wl_surface.commit of
  83. the corresponding wl_surface is called.
  84. </description>
  85. <request name="set_size">
  86. <description summary="sets the size of the surface">
  87. Sets the size of the surface in surface-local coordinates. The
  88. compositor will display the surface centered with respect to its
  89. anchors.
  90. If you pass 0 for either value, the compositor will assign it and
  91. inform you of the assignment in the configure event. You must set your
  92. anchor to opposite edges in the dimensions you omit; not doing so is a
  93. protocol error. Both values are 0 by default.
  94. Size is double-buffered, see wl_surface.commit.
  95. </description>
  96. <arg name="width" type="uint"/>
  97. <arg name="height" type="uint"/>
  98. </request>
  99. <request name="set_anchor">
  100. <description summary="configures the anchor point of the surface">
  101. Requests that the compositor anchor the surface to the specified edges
  102. and corners. If two orthogonal edges are specified (e.g. 'top' and
  103. 'left'), then the anchor point will be the intersection of the edges
  104. (e.g. the top left corner of the output); otherwise the anchor point
  105. will be centered on that edge, or in the center if none is specified.
  106. Anchor is double-buffered, see wl_surface.commit.
  107. </description>
  108. <arg name="anchor" type="uint" enum="anchor"/>
  109. </request>
  110. <request name="set_exclusive_zone">
  111. <description summary="configures the exclusive geometry of this surface">
  112. Requests that the compositor avoids occluding an area of the surface
  113. with other surfaces. The compositor's use of this information is
  114. implementation-dependent - do not assume that this region will not
  115. actually be occluded.
  116. A positive value is only meaningful if the surface is anchored to an
  117. edge, rather than a corner. The zone is the number of surface-local
  118. coordinates from the edge that is considered exclusive.
  119. Surfaces that do not wish to have an exclusive zone may instead specify
  120. how they should interact with surfaces that do. If set to zero, the
  121. surface indicates that it would like to be moved to avoid occluding
  122. surfaces with a positive exclusive zone. If set to -1, the surface
  123. indicates that it would not like to be moved to accommodate for other
  124. surfaces, and the compositor should extend it all the way to the edges
  125. it is anchored to.
  126. For example, a panel might set its exclusive zone to 10, so that
  127. maximized shell surfaces are not shown on top of it. A notification
  128. might set its exclusive zone to 0, so that it is moved to avoid
  129. occluding the panel, but shell surfaces are shown underneath it. A
  130. wallpaper or lock screen might set their exclusive zone to -1, so that
  131. they stretch below or over the panel.
  132. The default value is 0.
  133. Exclusive zone is double-buffered, see wl_surface.commit.
  134. </description>
  135. <arg name="zone" type="int"/>
  136. </request>
  137. <request name="set_margin">
  138. <description summary="sets a margin from the anchor point">
  139. Requests that the surface be placed some distance away from the anchor
  140. point on the output, in surface-local coordinates. Setting this value
  141. for edges you are not anchored to has no effect.
  142. The exclusive zone includes the margin.
  143. Margin is double-buffered, see wl_surface.commit.
  144. </description>
  145. <arg name="top" type="int"/>
  146. <arg name="right" type="int"/>
  147. <arg name="bottom" type="int"/>
  148. <arg name="left" type="int"/>
  149. </request>
  150. <request name="set_keyboard_interactivity">
  151. <description summary="requests keyboard events">
  152. Set to 1 to request that the seat send keyboard events to this layer
  153. surface. For layers below the shell surface layer, the seat will use
  154. normal focus semantics. For layers above the shell surface layers, the
  155. seat will always give exclusive keyboard focus to the top-most layer
  156. which has keyboard interactivity set to true.
  157. Layer surfaces receive pointer, touch, and tablet events normally. If
  158. you do not want to receive them, set the input region on your surface
  159. to an empty region.
  160. Events is double-buffered, see wl_surface.commit.
  161. </description>
  162. <arg name="keyboard_interactivity" type="uint"/>
  163. </request>
  164. <request name="get_popup">
  165. <description summary="assign this layer_surface as an xdg_popup parent">
  166. This assigns an xdg_popup's parent to this layer_surface. This popup
  167. should have been created via xdg_surface::get_popup with the parent set
  168. to NULL, and this request must be invoked before committing the popup's
  169. initial state.
  170. See the documentation of xdg_popup for more details about what an
  171. xdg_popup is and how it is used.
  172. </description>
  173. <arg name="popup" type="object" interface="xdg_popup"/>
  174. </request>
  175. <request name="ack_configure">
  176. <description summary="ack a configure event">
  177. When a configure event is received, if a client commits the
  178. surface in response to the configure event, then the client
  179. must make an ack_configure request sometime before the commit
  180. request, passing along the serial of the configure event.
  181. If the client receives multiple configure events before it
  182. can respond to one, it only has to ack the last configure event.
  183. A client is not required to commit immediately after sending
  184. an ack_configure request - it may even ack_configure several times
  185. before its next surface commit.
  186. A client may send multiple ack_configure requests before committing, but
  187. only the last request sent before a commit indicates which configure
  188. event the client really is responding to.
  189. </description>
  190. <arg name="serial" type="uint" summary="the serial from the configure event"/>
  191. </request>
  192. <request name="destroy" type="destructor">
  193. <description summary="destroy the layer_surface">
  194. This request destroys the layer surface.
  195. </description>
  196. </request>
  197. <event name="configure">
  198. <description summary="suggest a surface change">
  199. The configure event asks the client to resize its surface.
  200. Clients should arrange their surface for the new states, and then send
  201. an ack_configure request with the serial sent in this configure event at
  202. some point before committing the new surface.
  203. The client is free to dismiss all but the last configure event it
  204. received.
  205. The width and height arguments specify the size of the window in
  206. surface-local coordinates.
  207. The size is a hint, in the sense that the client is free to ignore it if
  208. it doesn't resize, pick a smaller size (to satisfy aspect ratio or
  209. resize in steps of NxM pixels). If the client picks a smaller size and
  210. is anchored to two opposite anchors (e.g. 'top' and 'bottom'), the
  211. surface will be centered on this axis.
  212. If the width or height arguments are zero, it means the client should
  213. decide its own window dimension.
  214. </description>
  215. <arg name="serial" type="uint"/>
  216. <arg name="width" type="uint"/>
  217. <arg name="height" type="uint"/>
  218. </event>
  219. <event name="closed">
  220. <description summary="surface should be closed">
  221. The closed event is sent by the compositor when the surface will no
  222. longer be shown. The output may have been destroyed or the user may
  223. have asked for it to be removed. Further changes to the surface will be
  224. ignored. The client should destroy the resource after receiving this
  225. event, and create a new surface if they so choose.
  226. </description>
  227. </event>
  228. <enum name="error">
  229. <entry name="invalid_surface_state" value="0" summary="provided surface state is invalid"/>
  230. <entry name="invalid_size" value="1" summary="size is invalid"/>
  231. <entry name="invalid_anchor" value="2" summary="anchor bitfield is invalid"/>
  232. </enum>
  233. <enum name="anchor" bitfield="true">
  234. <entry name="top" value="1" summary="the top edge of the anchor rectangle"/>
  235. <entry name="bottom" value="2" summary="the bottom edge of the anchor rectangle"/>
  236. <entry name="left" value="4" summary="the left edge of the anchor rectangle"/>
  237. <entry name="right" value="8" summary="the right edge of the anchor rectangle"/>
  238. </enum>
  239. </interface>
  240. </protocol>