river-layer-shell-v1.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="river_layer_shell_v1">
  3. <copyright>
  4. SPDX-FileCopyrightText: © 2025 Isaac Freund
  5. SPDX-License-Identifier: MIT
  6. Permission is hereby granted, free of charge, to any person obtaining a copy
  7. of this software and associated documentation files (the "Software"), to
  8. deal in the Software without restriction, including without limitation the
  9. rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  10. sell copies of the Software, and to permit persons to whom the Software is
  11. furnished to do so, subject to the following conditions:
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the 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 THE
  17. 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 DEALINGS
  20. IN THE SOFTWARE.
  21. </copyright>
  22. <description summary="optional layer shell support">
  23. This protocol allows the river-window-management-v1 window manager to
  24. support the wlr-layer-shell-unstable-v1 protocol.
  25. The key words "must", "must not", "required", "shall", "shall not",
  26. "should", "should not", "recommended", "may", and "optional" in this
  27. document are to be interpreted as described in IETF RFC 2119.
  28. </description>
  29. <interface name="river_layer_shell_v1" version="1">
  30. <description summary="river layer shell global interface">
  31. This global interface should only be advertised to the client if the
  32. river_window_manager_v1 global is also advertised. Binding this interface
  33. indicates that the window manager supports layer shell.
  34. If the window manager does not bind this interface, the compositor should
  35. not allow clients to map layer surfaces. This can be achieved by
  36. closing layer surfaces immediately.
  37. </description>
  38. <enum name="error">
  39. <entry name="object_already_created" value="0"
  40. summary="the layer_shell_output/seat object was already created."/>
  41. </enum>
  42. <request name="destroy" type="destructor">
  43. <description summary="destroy the river_layer_shell_v1 object">
  44. This request indicates that the client will no longer use the
  45. river_layer_shell_v1 object.
  46. </description>
  47. </request>
  48. <request name="get_output">
  49. <description summary="get layer shell output state">
  50. It is a protocol error to make this request more than once for a given
  51. river_output_v1 object.
  52. </description>
  53. <arg name="id" type="new_id" interface="river_layer_shell_output_v1"/>
  54. <arg name="output" type="object" interface="river_output_v1"/>
  55. </request>
  56. <request name="get_seat">
  57. <description summary="get layer shell seat state">
  58. It is a protocol error to make this request more than once for a given
  59. river_seat_v1 object.
  60. </description>
  61. <arg name="id" type="new_id" interface="river_layer_shell_seat_v1"/>
  62. <arg name="seat" type="object" interface="river_seat_v1"/>
  63. </request>
  64. </interface>
  65. <interface name="river_layer_shell_output_v1" version="1">
  66. <description summary="layer shell output state">
  67. The lifetime of this object is tied to the corresponding river_output_v1.
  68. This object is made inert when the river_output_v1.removed event is sent
  69. and should be destroyed.
  70. </description>
  71. <request name="destroy" type="destructor">
  72. <description summary="destroy the object">
  73. This request indicates that the client will no longer use the
  74. river_layer_shell_output_v1 object and that it may be safely destroyed.
  75. This request should be made after the river_output_v1.removed event is
  76. received to complete destruction of the output.
  77. </description>
  78. </request>
  79. <event name="non_exclusive_area">
  80. <description summary="area left after subtracting exclusive zones">
  81. This event indicates the area of the output remaining after subtracting
  82. the exclusive zones of layer surfaces. Exclusive zones are a hint, the
  83. window manager is free to ignore this area hint if it wishes.
  84. The x and y values are in the global coordinate space, not relative to
  85. the position of the output.
  86. This event will be followed by a manage_start event after all other new
  87. state has been sent by the server.
  88. </description>
  89. <arg name="x" type="int" summary="global x coordinate"/>
  90. <arg name="y" type="int" summary="global y coordinate"/>
  91. <arg name="width" type="int" summary="area width"/>
  92. <arg name="height" type="int" summary="area height"/>
  93. </event>
  94. <request name="set_default">
  95. <description summary="Set default output for layer surfaces">
  96. Mark this output as the default for new layer surfaces which do not
  97. request a specific output themselves. This request overrides any
  98. previous set_default request on any river_layer_shell_output_v1 object.
  99. If no set_default request is made or if the default output is destroyed,
  100. the default output is undefined until the next set_default request.
  101. This request modifies window management state and may only be made as
  102. part of a manage sequence, see the river_window_manager_v1 description.
  103. </description>
  104. </request>
  105. </interface>
  106. <interface name="river_layer_shell_seat_v1" version="1">
  107. <description summary="layer shell seat state">
  108. The lifetime of this object is tied to the corresponding river_seat_v1.
  109. This object is made inert when the river_seat_v1.removed event is sent and
  110. should be destroyed.
  111. </description>
  112. <request name="destroy" type="destructor">
  113. <description summary="destroy the object">
  114. This request indicates that the client will no longer use the
  115. river_layer_shell_seat_v1 object and that it may be safely destroyed.
  116. This request should be made after the river_seat_v1.removed event is
  117. received to complete destruction of the seat.
  118. </description>
  119. </request>
  120. <event name="focus_exclusive">
  121. <description summary="layer shell surface has exclusive focus">
  122. A layer shell surface will be given exclusive keyboard focus at the end
  123. of the manage sequence in which this event is sent. The window manager
  124. may want to update window decorations or similar to indicate that no
  125. window is focused.
  126. Until the focus_non_exclusive or focus_none event is sent, all window
  127. manager requests to change focus are ignored.
  128. This event will be followed by a manage_start event after all other new
  129. state has been sent by the server.
  130. </description>
  131. </event>
  132. <event name="focus_non_exclusive">
  133. <description summary="layer shell surface wants non-exclusive focus">
  134. A layer shell surface will be given non-exclusive keyboard focus at the
  135. end of the manage sequence in which this event is sent. The window
  136. manager may want to update window decorations or similar to indicate
  137. that no window is focused.
  138. The window manager continues to control focus and may choose to focus a
  139. different window/shell surface at any time. If the window manager sets
  140. focus during the same manage sequence in which this event is sent, the
  141. layer surface will not be focused.
  142. If the layer surface with non-exclusive focus is closed or the window
  143. manager chooses to move focus away from the layer surface, a focus_none
  144. event will be sent in the next manage sequence.
  145. This event will be followed by a manage_start event after all other new
  146. state has been sent by the server.
  147. </description>
  148. </event>
  149. <event name="focus_none">
  150. <description summary="no layer shell surface has focus">
  151. No layer shell surface will have keyboard focus at the end of the manage
  152. sequence in which this event is sent. The window manager may want to
  153. return focus to whichever window last had focus, for example.
  154. This event will be followed by a manage_start event after all other new
  155. state has been sent by the server.
  156. </description>
  157. </event>
  158. </interface>
  159. </protocol>