1b877906bSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
2b877906bSopenharmony_ci<protocol name="wayland">
3b877906bSopenharmony_ci
4b877906bSopenharmony_ci  <copyright>
5b877906bSopenharmony_ci    Copyright © 2008-2011 Kristian Høgsberg
6b877906bSopenharmony_ci    Copyright © 2010-2011 Intel Corporation
7b877906bSopenharmony_ci    Copyright © 2012-2013 Collabora, Ltd.
8b877906bSopenharmony_ci
9b877906bSopenharmony_ci    Permission is hereby granted, free of charge, to any person
10b877906bSopenharmony_ci    obtaining a copy of this software and associated documentation files
11b877906bSopenharmony_ci    (the "Software"), to deal in the Software without restriction,
12b877906bSopenharmony_ci    including without limitation the rights to use, copy, modify, merge,
13b877906bSopenharmony_ci    publish, distribute, sublicense, and/or sell copies of the Software,
14b877906bSopenharmony_ci    and to permit persons to whom the Software is furnished to do so,
15b877906bSopenharmony_ci    subject to the following conditions:
16b877906bSopenharmony_ci
17b877906bSopenharmony_ci    The above copyright notice and this permission notice (including the
18b877906bSopenharmony_ci    next paragraph) shall be included in all copies or substantial
19b877906bSopenharmony_ci    portions of the Software.
20b877906bSopenharmony_ci
21b877906bSopenharmony_ci    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22b877906bSopenharmony_ci    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23b877906bSopenharmony_ci    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24b877906bSopenharmony_ci    NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
25b877906bSopenharmony_ci    BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
26b877906bSopenharmony_ci    ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27b877906bSopenharmony_ci    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28b877906bSopenharmony_ci    SOFTWARE.
29b877906bSopenharmony_ci  </copyright>
30b877906bSopenharmony_ci
31b877906bSopenharmony_ci  <interface name="wl_display" version="1">
32b877906bSopenharmony_ci    <description summary="core global object">
33b877906bSopenharmony_ci      The core global object.  This is a special singleton object.  It
34b877906bSopenharmony_ci      is used for internal Wayland protocol features.
35b877906bSopenharmony_ci    </description>
36b877906bSopenharmony_ci
37b877906bSopenharmony_ci    <request name="sync">
38b877906bSopenharmony_ci      <description summary="asynchronous roundtrip">
39b877906bSopenharmony_ci	The sync request asks the server to emit the 'done' event
40b877906bSopenharmony_ci	on the returned wl_callback object.  Since requests are
41b877906bSopenharmony_ci	handled in-order and events are delivered in-order, this can
42b877906bSopenharmony_ci	be used as a barrier to ensure all previous requests and the
43b877906bSopenharmony_ci	resulting events have been handled.
44b877906bSopenharmony_ci
45b877906bSopenharmony_ci	The object returned by this request will be destroyed by the
46b877906bSopenharmony_ci	compositor after the callback is fired and as such the client must not
47b877906bSopenharmony_ci	attempt to use it after that point.
48b877906bSopenharmony_ci
49b877906bSopenharmony_ci	The callback_data passed in the callback is the event serial.
50b877906bSopenharmony_ci      </description>
51b877906bSopenharmony_ci      <arg name="callback" type="new_id" interface="wl_callback"
52b877906bSopenharmony_ci	   summary="callback object for the sync request"/>
53b877906bSopenharmony_ci    </request>
54b877906bSopenharmony_ci
55b877906bSopenharmony_ci    <request name="get_registry">
56b877906bSopenharmony_ci      <description summary="get global registry object">
57b877906bSopenharmony_ci	This request creates a registry object that allows the client
58b877906bSopenharmony_ci	to list and bind the global objects available from the
59b877906bSopenharmony_ci	compositor.
60b877906bSopenharmony_ci
61b877906bSopenharmony_ci	It should be noted that the server side resources consumed in
62b877906bSopenharmony_ci	response to a get_registry request can only be released when the
63b877906bSopenharmony_ci	client disconnects, not when the client side proxy is destroyed.
64b877906bSopenharmony_ci	Therefore, clients should invoke get_registry as infrequently as
65b877906bSopenharmony_ci	possible to avoid wasting memory.
66b877906bSopenharmony_ci      </description>
67b877906bSopenharmony_ci      <arg name="registry" type="new_id" interface="wl_registry"
68b877906bSopenharmony_ci	   summary="global registry object"/>
69b877906bSopenharmony_ci    </request>
70b877906bSopenharmony_ci
71b877906bSopenharmony_ci    <event name="error">
72b877906bSopenharmony_ci      <description summary="fatal error event">
73b877906bSopenharmony_ci	The error event is sent out when a fatal (non-recoverable)
74b877906bSopenharmony_ci	error has occurred.  The object_id argument is the object
75b877906bSopenharmony_ci	where the error occurred, most often in response to a request
76b877906bSopenharmony_ci	to that object.  The code identifies the error and is defined
77b877906bSopenharmony_ci	by the object interface.  As such, each interface defines its
78b877906bSopenharmony_ci	own set of error codes.  The message is a brief description
79b877906bSopenharmony_ci	of the error, for (debugging) convenience.
80b877906bSopenharmony_ci      </description>
81b877906bSopenharmony_ci      <arg name="object_id" type="object" summary="object where the error occurred"/>
82b877906bSopenharmony_ci      <arg name="code" type="uint" summary="error code"/>
83b877906bSopenharmony_ci      <arg name="message" type="string" summary="error description"/>
84b877906bSopenharmony_ci    </event>
85b877906bSopenharmony_ci
86b877906bSopenharmony_ci    <enum name="error">
87b877906bSopenharmony_ci      <description summary="global error values">
88b877906bSopenharmony_ci	These errors are global and can be emitted in response to any
89b877906bSopenharmony_ci	server request.
90b877906bSopenharmony_ci      </description>
91b877906bSopenharmony_ci      <entry name="invalid_object" value="0"
92b877906bSopenharmony_ci	     summary="server couldn't find object"/>
93b877906bSopenharmony_ci      <entry name="invalid_method" value="1"
94b877906bSopenharmony_ci	     summary="method doesn't exist on the specified interface or malformed request"/>
95b877906bSopenharmony_ci      <entry name="no_memory" value="2"
96b877906bSopenharmony_ci	     summary="server is out of memory"/>
97b877906bSopenharmony_ci      <entry name="implementation" value="3"
98b877906bSopenharmony_ci	     summary="implementation error in compositor"/>
99b877906bSopenharmony_ci    </enum>
100b877906bSopenharmony_ci
101b877906bSopenharmony_ci    <event name="delete_id">
102b877906bSopenharmony_ci      <description summary="acknowledge object ID deletion">
103b877906bSopenharmony_ci	This event is used internally by the object ID management
104b877906bSopenharmony_ci	logic. When a client deletes an object that it had created,
105b877906bSopenharmony_ci	the server will send this event to acknowledge that it has
106b877906bSopenharmony_ci	seen the delete request. When the client receives this event,
107b877906bSopenharmony_ci	it will know that it can safely reuse the object ID.
108b877906bSopenharmony_ci      </description>
109b877906bSopenharmony_ci      <arg name="id" type="uint" summary="deleted object ID"/>
110b877906bSopenharmony_ci    </event>
111b877906bSopenharmony_ci  </interface>
112b877906bSopenharmony_ci
113b877906bSopenharmony_ci  <interface name="wl_registry" version="1">
114b877906bSopenharmony_ci    <description summary="global registry object">
115b877906bSopenharmony_ci      The singleton global registry object.  The server has a number of
116b877906bSopenharmony_ci      global objects that are available to all clients.  These objects
117b877906bSopenharmony_ci      typically represent an actual object in the server (for example,
118b877906bSopenharmony_ci      an input device) or they are singleton objects that provide
119b877906bSopenharmony_ci      extension functionality.
120b877906bSopenharmony_ci
121b877906bSopenharmony_ci      When a client creates a registry object, the registry object
122b877906bSopenharmony_ci      will emit a global event for each global currently in the
123b877906bSopenharmony_ci      registry.  Globals come and go as a result of device or
124b877906bSopenharmony_ci      monitor hotplugs, reconfiguration or other events, and the
125b877906bSopenharmony_ci      registry will send out global and global_remove events to
126b877906bSopenharmony_ci      keep the client up to date with the changes.  To mark the end
127b877906bSopenharmony_ci      of the initial burst of events, the client can use the
128b877906bSopenharmony_ci      wl_display.sync request immediately after calling
129b877906bSopenharmony_ci      wl_display.get_registry.
130b877906bSopenharmony_ci
131b877906bSopenharmony_ci      A client can bind to a global object by using the bind
132b877906bSopenharmony_ci      request.  This creates a client-side handle that lets the object
133b877906bSopenharmony_ci      emit events to the client and lets the client invoke requests on
134b877906bSopenharmony_ci      the object.
135b877906bSopenharmony_ci    </description>
136b877906bSopenharmony_ci
137b877906bSopenharmony_ci    <request name="bind">
138b877906bSopenharmony_ci      <description summary="bind an object to the display">
139b877906bSopenharmony_ci	Binds a new, client-created object to the server using the
140b877906bSopenharmony_ci	specified name as the identifier.
141b877906bSopenharmony_ci      </description>
142b877906bSopenharmony_ci      <arg name="name" type="uint" summary="unique numeric name of the object"/>
143b877906bSopenharmony_ci      <arg name="id" type="new_id" summary="bounded object"/>
144b877906bSopenharmony_ci    </request>
145b877906bSopenharmony_ci
146b877906bSopenharmony_ci    <event name="global">
147b877906bSopenharmony_ci      <description summary="announce global object">
148b877906bSopenharmony_ci	Notify the client of global objects.
149b877906bSopenharmony_ci
150b877906bSopenharmony_ci	The event notifies the client that a global object with
151b877906bSopenharmony_ci	the given name is now available, and it implements the
152b877906bSopenharmony_ci	given version of the given interface.
153b877906bSopenharmony_ci      </description>
154b877906bSopenharmony_ci      <arg name="name" type="uint" summary="numeric name of the global object"/>
155b877906bSopenharmony_ci      <arg name="interface" type="string" summary="interface implemented by the object"/>
156b877906bSopenharmony_ci      <arg name="version" type="uint" summary="interface version"/>
157b877906bSopenharmony_ci    </event>
158b877906bSopenharmony_ci
159b877906bSopenharmony_ci    <event name="global_remove">
160b877906bSopenharmony_ci      <description summary="announce removal of global object">
161b877906bSopenharmony_ci	Notify the client of removed global objects.
162b877906bSopenharmony_ci
163b877906bSopenharmony_ci	This event notifies the client that the global identified
164b877906bSopenharmony_ci	by name is no longer available.  If the client bound to
165b877906bSopenharmony_ci	the global using the bind request, the client should now
166b877906bSopenharmony_ci	destroy that object.
167b877906bSopenharmony_ci
168b877906bSopenharmony_ci	The object remains valid and requests to the object will be
169b877906bSopenharmony_ci	ignored until the client destroys it, to avoid races between
170b877906bSopenharmony_ci	the global going away and a client sending a request to it.
171b877906bSopenharmony_ci      </description>
172b877906bSopenharmony_ci      <arg name="name" type="uint" summary="numeric name of the global object"/>
173b877906bSopenharmony_ci    </event>
174b877906bSopenharmony_ci  </interface>
175b877906bSopenharmony_ci
176b877906bSopenharmony_ci  <interface name="wl_callback" version="1">
177b877906bSopenharmony_ci    <description summary="callback object">
178b877906bSopenharmony_ci      Clients can handle the 'done' event to get notified when
179b877906bSopenharmony_ci      the related request is done.
180b877906bSopenharmony_ci
181b877906bSopenharmony_ci      Note, because wl_callback objects are created from multiple independent
182b877906bSopenharmony_ci      factory interfaces, the wl_callback interface is frozen at version 1.
183b877906bSopenharmony_ci    </description>
184b877906bSopenharmony_ci
185b877906bSopenharmony_ci    <event name="done" type="destructor">
186b877906bSopenharmony_ci      <description summary="done event">
187b877906bSopenharmony_ci	Notify the client when the related request is done.
188b877906bSopenharmony_ci      </description>
189b877906bSopenharmony_ci      <arg name="callback_data" type="uint" summary="request-specific data for the callback"/>
190b877906bSopenharmony_ci    </event>
191b877906bSopenharmony_ci  </interface>
192b877906bSopenharmony_ci
193b877906bSopenharmony_ci  <interface name="wl_compositor" version="6">
194b877906bSopenharmony_ci    <description summary="the compositor singleton">
195b877906bSopenharmony_ci      A compositor.  This object is a singleton global.  The
196b877906bSopenharmony_ci      compositor is in charge of combining the contents of multiple
197b877906bSopenharmony_ci      surfaces into one displayable output.
198b877906bSopenharmony_ci    </description>
199b877906bSopenharmony_ci
200b877906bSopenharmony_ci    <request name="create_surface">
201b877906bSopenharmony_ci      <description summary="create new surface">
202b877906bSopenharmony_ci	Ask the compositor to create a new surface.
203b877906bSopenharmony_ci      </description>
204b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_surface" summary="the new surface"/>
205b877906bSopenharmony_ci    </request>
206b877906bSopenharmony_ci
207b877906bSopenharmony_ci    <request name="create_region">
208b877906bSopenharmony_ci      <description summary="create new region">
209b877906bSopenharmony_ci	Ask the compositor to create a new region.
210b877906bSopenharmony_ci      </description>
211b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_region" summary="the new region"/>
212b877906bSopenharmony_ci    </request>
213b877906bSopenharmony_ci  </interface>
214b877906bSopenharmony_ci
215b877906bSopenharmony_ci  <interface name="wl_shm_pool" version="1">
216b877906bSopenharmony_ci    <description summary="a shared memory pool">
217b877906bSopenharmony_ci      The wl_shm_pool object encapsulates a piece of memory shared
218b877906bSopenharmony_ci      between the compositor and client.  Through the wl_shm_pool
219b877906bSopenharmony_ci      object, the client can allocate shared memory wl_buffer objects.
220b877906bSopenharmony_ci      All objects created through the same pool share the same
221b877906bSopenharmony_ci      underlying mapped memory. Reusing the mapped memory avoids the
222b877906bSopenharmony_ci      setup/teardown overhead and is useful when interactively resizing
223b877906bSopenharmony_ci      a surface or for many small buffers.
224b877906bSopenharmony_ci    </description>
225b877906bSopenharmony_ci
226b877906bSopenharmony_ci    <request name="create_buffer">
227b877906bSopenharmony_ci      <description summary="create a buffer from the pool">
228b877906bSopenharmony_ci	Create a wl_buffer object from the pool.
229b877906bSopenharmony_ci
230b877906bSopenharmony_ci	The buffer is created offset bytes into the pool and has
231b877906bSopenharmony_ci	width and height as specified.  The stride argument specifies
232b877906bSopenharmony_ci	the number of bytes from the beginning of one row to the beginning
233b877906bSopenharmony_ci	of the next.  The format is the pixel format of the buffer and
234b877906bSopenharmony_ci	must be one of those advertised through the wl_shm.format event.
235b877906bSopenharmony_ci
236b877906bSopenharmony_ci	A buffer will keep a reference to the pool it was created from
237b877906bSopenharmony_ci	so it is valid to destroy the pool immediately after creating
238b877906bSopenharmony_ci	a buffer from it.
239b877906bSopenharmony_ci      </description>
240b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_buffer" summary="buffer to create"/>
241b877906bSopenharmony_ci      <arg name="offset" type="int" summary="buffer byte offset within the pool"/>
242b877906bSopenharmony_ci      <arg name="width" type="int" summary="buffer width, in pixels"/>
243b877906bSopenharmony_ci      <arg name="height" type="int" summary="buffer height, in pixels"/>
244b877906bSopenharmony_ci      <arg name="stride" type="int" summary="number of bytes from the beginning of one row to the beginning of the next row"/>
245b877906bSopenharmony_ci      <arg name="format" type="uint" enum="wl_shm.format" summary="buffer pixel format"/>
246b877906bSopenharmony_ci    </request>
247b877906bSopenharmony_ci
248b877906bSopenharmony_ci    <request name="destroy" type="destructor">
249b877906bSopenharmony_ci      <description summary="destroy the pool">
250b877906bSopenharmony_ci	Destroy the shared memory pool.
251b877906bSopenharmony_ci
252b877906bSopenharmony_ci	The mmapped memory will be released when all
253b877906bSopenharmony_ci	buffers that have been created from this pool
254b877906bSopenharmony_ci	are gone.
255b877906bSopenharmony_ci      </description>
256b877906bSopenharmony_ci    </request>
257b877906bSopenharmony_ci
258b877906bSopenharmony_ci    <request name="resize">
259b877906bSopenharmony_ci      <description summary="change the size of the pool mapping">
260b877906bSopenharmony_ci	This request will cause the server to remap the backing memory
261b877906bSopenharmony_ci	for the pool from the file descriptor passed when the pool was
262b877906bSopenharmony_ci	created, but using the new size.  This request can only be
263b877906bSopenharmony_ci	used to make the pool bigger.
264b877906bSopenharmony_ci
265b877906bSopenharmony_ci        This request only changes the amount of bytes that are mmapped
266b877906bSopenharmony_ci        by the server and does not touch the file corresponding to the
267b877906bSopenharmony_ci        file descriptor passed at creation time. It is the client's
268b877906bSopenharmony_ci        responsibility to ensure that the file is at least as big as
269b877906bSopenharmony_ci        the new pool size.
270b877906bSopenharmony_ci      </description>
271b877906bSopenharmony_ci      <arg name="size" type="int" summary="new size of the pool, in bytes"/>
272b877906bSopenharmony_ci    </request>
273b877906bSopenharmony_ci  </interface>
274b877906bSopenharmony_ci
275b877906bSopenharmony_ci  <interface name="wl_shm" version="1">
276b877906bSopenharmony_ci    <description summary="shared memory support">
277b877906bSopenharmony_ci      A singleton global object that provides support for shared
278b877906bSopenharmony_ci      memory.
279b877906bSopenharmony_ci
280b877906bSopenharmony_ci      Clients can create wl_shm_pool objects using the create_pool
281b877906bSopenharmony_ci      request.
282b877906bSopenharmony_ci
283b877906bSopenharmony_ci      On binding the wl_shm object one or more format events
284b877906bSopenharmony_ci      are emitted to inform clients about the valid pixel formats
285b877906bSopenharmony_ci      that can be used for buffers.
286b877906bSopenharmony_ci    </description>
287b877906bSopenharmony_ci
288b877906bSopenharmony_ci    <enum name="error">
289b877906bSopenharmony_ci      <description summary="wl_shm error values">
290b877906bSopenharmony_ci	These errors can be emitted in response to wl_shm requests.
291b877906bSopenharmony_ci      </description>
292b877906bSopenharmony_ci      <entry name="invalid_format" value="0" summary="buffer format is not known"/>
293b877906bSopenharmony_ci      <entry name="invalid_stride" value="1" summary="invalid size or stride during pool or buffer creation"/>
294b877906bSopenharmony_ci      <entry name="invalid_fd" value="2" summary="mmapping the file descriptor failed"/>
295b877906bSopenharmony_ci    </enum>
296b877906bSopenharmony_ci
297b877906bSopenharmony_ci    <enum name="format">
298b877906bSopenharmony_ci      <description summary="pixel formats">
299b877906bSopenharmony_ci	This describes the memory layout of an individual pixel.
300b877906bSopenharmony_ci
301b877906bSopenharmony_ci	All renderers should support argb8888 and xrgb8888 but any other
302b877906bSopenharmony_ci	formats are optional and may not be supported by the particular
303b877906bSopenharmony_ci	renderer in use.
304b877906bSopenharmony_ci
305b877906bSopenharmony_ci	The drm format codes match the macros defined in drm_fourcc.h, except
306b877906bSopenharmony_ci	argb8888 and xrgb8888. The formats actually supported by the compositor
307b877906bSopenharmony_ci	will be reported by the format event.
308b877906bSopenharmony_ci
309b877906bSopenharmony_ci	For all wl_shm formats and unless specified in another protocol
310b877906bSopenharmony_ci	extension, pre-multiplied alpha is used for pixel values.
311b877906bSopenharmony_ci      </description>
312b877906bSopenharmony_ci      <!-- Note to protocol writers: don't update this list manually, instead
313b877906bSopenharmony_ci	   run the automated script that keeps it in sync with drm_fourcc.h. -->
314b877906bSopenharmony_ci      <entry name="argb8888" value="0" summary="32-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian"/>
315b877906bSopenharmony_ci      <entry name="xrgb8888" value="1" summary="32-bit RGB format, [31:0] x:R:G:B 8:8:8:8 little endian"/>
316b877906bSopenharmony_ci      <entry name="c8" value="0x20203843" summary="8-bit color index format, [7:0] C"/>
317b877906bSopenharmony_ci      <entry name="rgb332" value="0x38424752" summary="8-bit RGB format, [7:0] R:G:B 3:3:2"/>
318b877906bSopenharmony_ci      <entry name="bgr233" value="0x38524742" summary="8-bit BGR format, [7:0] B:G:R 2:3:3"/>
319b877906bSopenharmony_ci      <entry name="xrgb4444" value="0x32315258" summary="16-bit xRGB format, [15:0] x:R:G:B 4:4:4:4 little endian"/>
320b877906bSopenharmony_ci      <entry name="xbgr4444" value="0x32314258" summary="16-bit xBGR format, [15:0] x:B:G:R 4:4:4:4 little endian"/>
321b877906bSopenharmony_ci      <entry name="rgbx4444" value="0x32315852" summary="16-bit RGBx format, [15:0] R:G:B:x 4:4:4:4 little endian"/>
322b877906bSopenharmony_ci      <entry name="bgrx4444" value="0x32315842" summary="16-bit BGRx format, [15:0] B:G:R:x 4:4:4:4 little endian"/>
323b877906bSopenharmony_ci      <entry name="argb4444" value="0x32315241" summary="16-bit ARGB format, [15:0] A:R:G:B 4:4:4:4 little endian"/>
324b877906bSopenharmony_ci      <entry name="abgr4444" value="0x32314241" summary="16-bit ABGR format, [15:0] A:B:G:R 4:4:4:4 little endian"/>
325b877906bSopenharmony_ci      <entry name="rgba4444" value="0x32314152" summary="16-bit RBGA format, [15:0] R:G:B:A 4:4:4:4 little endian"/>
326b877906bSopenharmony_ci      <entry name="bgra4444" value="0x32314142" summary="16-bit BGRA format, [15:0] B:G:R:A 4:4:4:4 little endian"/>
327b877906bSopenharmony_ci      <entry name="xrgb1555" value="0x35315258" summary="16-bit xRGB format, [15:0] x:R:G:B 1:5:5:5 little endian"/>
328b877906bSopenharmony_ci      <entry name="xbgr1555" value="0x35314258" summary="16-bit xBGR 1555 format, [15:0] x:B:G:R 1:5:5:5 little endian"/>
329b877906bSopenharmony_ci      <entry name="rgbx5551" value="0x35315852" summary="16-bit RGBx 5551 format, [15:0] R:G:B:x 5:5:5:1 little endian"/>
330b877906bSopenharmony_ci      <entry name="bgrx5551" value="0x35315842" summary="16-bit BGRx 5551 format, [15:0] B:G:R:x 5:5:5:1 little endian"/>
331b877906bSopenharmony_ci      <entry name="argb1555" value="0x35315241" summary="16-bit ARGB 1555 format, [15:0] A:R:G:B 1:5:5:5 little endian"/>
332b877906bSopenharmony_ci      <entry name="abgr1555" value="0x35314241" summary="16-bit ABGR 1555 format, [15:0] A:B:G:R 1:5:5:5 little endian"/>
333b877906bSopenharmony_ci      <entry name="rgba5551" value="0x35314152" summary="16-bit RGBA 5551 format, [15:0] R:G:B:A 5:5:5:1 little endian"/>
334b877906bSopenharmony_ci      <entry name="bgra5551" value="0x35314142" summary="16-bit BGRA 5551 format, [15:0] B:G:R:A 5:5:5:1 little endian"/>
335b877906bSopenharmony_ci      <entry name="rgb565" value="0x36314752" summary="16-bit RGB 565 format, [15:0] R:G:B 5:6:5 little endian"/>
336b877906bSopenharmony_ci      <entry name="bgr565" value="0x36314742" summary="16-bit BGR 565 format, [15:0] B:G:R 5:6:5 little endian"/>
337b877906bSopenharmony_ci      <entry name="rgb888" value="0x34324752" summary="24-bit RGB format, [23:0] R:G:B little endian"/>
338b877906bSopenharmony_ci      <entry name="bgr888" value="0x34324742" summary="24-bit BGR format, [23:0] B:G:R little endian"/>
339b877906bSopenharmony_ci      <entry name="xbgr8888" value="0x34324258" summary="32-bit xBGR format, [31:0] x:B:G:R 8:8:8:8 little endian"/>
340b877906bSopenharmony_ci      <entry name="rgbx8888" value="0x34325852" summary="32-bit RGBx format, [31:0] R:G:B:x 8:8:8:8 little endian"/>
341b877906bSopenharmony_ci      <entry name="bgrx8888" value="0x34325842" summary="32-bit BGRx format, [31:0] B:G:R:x 8:8:8:8 little endian"/>
342b877906bSopenharmony_ci      <entry name="abgr8888" value="0x34324241" summary="32-bit ABGR format, [31:0] A:B:G:R 8:8:8:8 little endian"/>
343b877906bSopenharmony_ci      <entry name="rgba8888" value="0x34324152" summary="32-bit RGBA format, [31:0] R:G:B:A 8:8:8:8 little endian"/>
344b877906bSopenharmony_ci      <entry name="bgra8888" value="0x34324142" summary="32-bit BGRA format, [31:0] B:G:R:A 8:8:8:8 little endian"/>
345b877906bSopenharmony_ci      <entry name="xrgb2101010" value="0x30335258" summary="32-bit xRGB format, [31:0] x:R:G:B 2:10:10:10 little endian"/>
346b877906bSopenharmony_ci      <entry name="xbgr2101010" value="0x30334258" summary="32-bit xBGR format, [31:0] x:B:G:R 2:10:10:10 little endian"/>
347b877906bSopenharmony_ci      <entry name="rgbx1010102" value="0x30335852" summary="32-bit RGBx format, [31:0] R:G:B:x 10:10:10:2 little endian"/>
348b877906bSopenharmony_ci      <entry name="bgrx1010102" value="0x30335842" summary="32-bit BGRx format, [31:0] B:G:R:x 10:10:10:2 little endian"/>
349b877906bSopenharmony_ci      <entry name="argb2101010" value="0x30335241" summary="32-bit ARGB format, [31:0] A:R:G:B 2:10:10:10 little endian"/>
350b877906bSopenharmony_ci      <entry name="abgr2101010" value="0x30334241" summary="32-bit ABGR format, [31:0] A:B:G:R 2:10:10:10 little endian"/>
351b877906bSopenharmony_ci      <entry name="rgba1010102" value="0x30334152" summary="32-bit RGBA format, [31:0] R:G:B:A 10:10:10:2 little endian"/>
352b877906bSopenharmony_ci      <entry name="bgra1010102" value="0x30334142" summary="32-bit BGRA format, [31:0] B:G:R:A 10:10:10:2 little endian"/>
353b877906bSopenharmony_ci      <entry name="yuyv" value="0x56595559" summary="packed YCbCr format, [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian"/>
354b877906bSopenharmony_ci      <entry name="yvyu" value="0x55595659" summary="packed YCbCr format, [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian"/>
355b877906bSopenharmony_ci      <entry name="uyvy" value="0x59565955" summary="packed YCbCr format, [31:0] Y1:Cr0:Y0:Cb0 8:8:8:8 little endian"/>
356b877906bSopenharmony_ci      <entry name="vyuy" value="0x59555956" summary="packed YCbCr format, [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian"/>
357b877906bSopenharmony_ci      <entry name="ayuv" value="0x56555941" summary="packed AYCbCr format, [31:0] A:Y:Cb:Cr 8:8:8:8 little endian"/>
358b877906bSopenharmony_ci      <entry name="nv12" value="0x3231564e" summary="2 plane YCbCr Cr:Cb format, 2x2 subsampled Cr:Cb plane"/>
359b877906bSopenharmony_ci      <entry name="nv21" value="0x3132564e" summary="2 plane YCbCr Cb:Cr format, 2x2 subsampled Cb:Cr plane"/>
360b877906bSopenharmony_ci      <entry name="nv16" value="0x3631564e" summary="2 plane YCbCr Cr:Cb format, 2x1 subsampled Cr:Cb plane"/>
361b877906bSopenharmony_ci      <entry name="nv61" value="0x3136564e" summary="2 plane YCbCr Cb:Cr format, 2x1 subsampled Cb:Cr plane"/>
362b877906bSopenharmony_ci      <entry name="yuv410" value="0x39565559" summary="3 plane YCbCr format, 4x4 subsampled Cb (1) and Cr (2) planes"/>
363b877906bSopenharmony_ci      <entry name="yvu410" value="0x39555659" summary="3 plane YCbCr format, 4x4 subsampled Cr (1) and Cb (2) planes"/>
364b877906bSopenharmony_ci      <entry name="yuv411" value="0x31315559" summary="3 plane YCbCr format, 4x1 subsampled Cb (1) and Cr (2) planes"/>
365b877906bSopenharmony_ci      <entry name="yvu411" value="0x31315659" summary="3 plane YCbCr format, 4x1 subsampled Cr (1) and Cb (2) planes"/>
366b877906bSopenharmony_ci      <entry name="yuv420" value="0x32315559" summary="3 plane YCbCr format, 2x2 subsampled Cb (1) and Cr (2) planes"/>
367b877906bSopenharmony_ci      <entry name="yvu420" value="0x32315659" summary="3 plane YCbCr format, 2x2 subsampled Cr (1) and Cb (2) planes"/>
368b877906bSopenharmony_ci      <entry name="yuv422" value="0x36315559" summary="3 plane YCbCr format, 2x1 subsampled Cb (1) and Cr (2) planes"/>
369b877906bSopenharmony_ci      <entry name="yvu422" value="0x36315659" summary="3 plane YCbCr format, 2x1 subsampled Cr (1) and Cb (2) planes"/>
370b877906bSopenharmony_ci      <entry name="yuv444" value="0x34325559" summary="3 plane YCbCr format, non-subsampled Cb (1) and Cr (2) planes"/>
371b877906bSopenharmony_ci      <entry name="yvu444" value="0x34325659" summary="3 plane YCbCr format, non-subsampled Cr (1) and Cb (2) planes"/>
372b877906bSopenharmony_ci      <entry name="r8" value="0x20203852" summary="[7:0] R"/>
373b877906bSopenharmony_ci      <entry name="r16" value="0x20363152" summary="[15:0] R little endian"/>
374b877906bSopenharmony_ci      <entry name="rg88" value="0x38384752" summary="[15:0] R:G 8:8 little endian"/>
375b877906bSopenharmony_ci      <entry name="gr88" value="0x38385247" summary="[15:0] G:R 8:8 little endian"/>
376b877906bSopenharmony_ci      <entry name="rg1616" value="0x32334752" summary="[31:0] R:G 16:16 little endian"/>
377b877906bSopenharmony_ci      <entry name="gr1616" value="0x32335247" summary="[31:0] G:R 16:16 little endian"/>
378b877906bSopenharmony_ci      <entry name="xrgb16161616f" value="0x48345258" summary="[63:0] x:R:G:B 16:16:16:16 little endian"/>
379b877906bSopenharmony_ci      <entry name="xbgr16161616f" value="0x48344258" summary="[63:0] x:B:G:R 16:16:16:16 little endian"/>
380b877906bSopenharmony_ci      <entry name="argb16161616f" value="0x48345241" summary="[63:0] A:R:G:B 16:16:16:16 little endian"/>
381b877906bSopenharmony_ci      <entry name="abgr16161616f" value="0x48344241" summary="[63:0] A:B:G:R 16:16:16:16 little endian"/>
382b877906bSopenharmony_ci      <entry name="xyuv8888" value="0x56555958" summary="[31:0] X:Y:Cb:Cr 8:8:8:8 little endian"/>
383b877906bSopenharmony_ci      <entry name="vuy888" value="0x34325556" summary="[23:0] Cr:Cb:Y 8:8:8 little endian"/>
384b877906bSopenharmony_ci      <entry name="vuy101010" value="0x30335556" summary="Y followed by U then V, 10:10:10. Non-linear modifier only"/>
385b877906bSopenharmony_ci      <entry name="y210" value="0x30313259" summary="[63:0] Cr0:0:Y1:0:Cb0:0:Y0:0 10:6:10:6:10:6:10:6 little endian per 2 Y pixels"/>
386b877906bSopenharmony_ci      <entry name="y212" value="0x32313259" summary="[63:0] Cr0:0:Y1:0:Cb0:0:Y0:0 12:4:12:4:12:4:12:4 little endian per 2 Y pixels"/>
387b877906bSopenharmony_ci      <entry name="y216" value="0x36313259" summary="[63:0] Cr0:Y1:Cb0:Y0 16:16:16:16 little endian per 2 Y pixels"/>
388b877906bSopenharmony_ci      <entry name="y410" value="0x30313459" summary="[31:0] A:Cr:Y:Cb 2:10:10:10 little endian"/>
389b877906bSopenharmony_ci      <entry name="y412" value="0x32313459" summary="[63:0] A:0:Cr:0:Y:0:Cb:0 12:4:12:4:12:4:12:4 little endian"/>
390b877906bSopenharmony_ci      <entry name="y416" value="0x36313459" summary="[63:0] A:Cr:Y:Cb 16:16:16:16 little endian"/>
391b877906bSopenharmony_ci      <entry name="xvyu2101010" value="0x30335658" summary="[31:0] X:Cr:Y:Cb 2:10:10:10 little endian"/>
392b877906bSopenharmony_ci      <entry name="xvyu12_16161616" value="0x36335658" summary="[63:0] X:0:Cr:0:Y:0:Cb:0 12:4:12:4:12:4:12:4 little endian"/>
393b877906bSopenharmony_ci      <entry name="xvyu16161616" value="0x38345658" summary="[63:0] X:Cr:Y:Cb 16:16:16:16 little endian"/>
394b877906bSopenharmony_ci      <entry name="y0l0" value="0x304c3059" summary="[63:0]   A3:A2:Y3:0:Cr0:0:Y2:0:A1:A0:Y1:0:Cb0:0:Y0:0  1:1:8:2:8:2:8:2:1:1:8:2:8:2:8:2 little endian"/>
395b877906bSopenharmony_ci      <entry name="x0l0" value="0x304c3058" summary="[63:0]   X3:X2:Y3:0:Cr0:0:Y2:0:X1:X0:Y1:0:Cb0:0:Y0:0  1:1:8:2:8:2:8:2:1:1:8:2:8:2:8:2 little endian"/>
396b877906bSopenharmony_ci      <entry name="y0l2" value="0x324c3059" summary="[63:0]   A3:A2:Y3:Cr0:Y2:A1:A0:Y1:Cb0:Y0  1:1:10:10:10:1:1:10:10:10 little endian"/>
397b877906bSopenharmony_ci      <entry name="x0l2" value="0x324c3058" summary="[63:0]   X3:X2:Y3:Cr0:Y2:X1:X0:Y1:Cb0:Y0  1:1:10:10:10:1:1:10:10:10 little endian"/>
398b877906bSopenharmony_ci      <entry name="yuv420_8bit" value="0x38305559"/>
399b877906bSopenharmony_ci      <entry name="yuv420_10bit" value="0x30315559"/>
400b877906bSopenharmony_ci      <entry name="xrgb8888_a8" value="0x38415258"/>
401b877906bSopenharmony_ci      <entry name="xbgr8888_a8" value="0x38414258"/>
402b877906bSopenharmony_ci      <entry name="rgbx8888_a8" value="0x38415852"/>
403b877906bSopenharmony_ci      <entry name="bgrx8888_a8" value="0x38415842"/>
404b877906bSopenharmony_ci      <entry name="rgb888_a8" value="0x38413852"/>
405b877906bSopenharmony_ci      <entry name="bgr888_a8" value="0x38413842"/>
406b877906bSopenharmony_ci      <entry name="rgb565_a8" value="0x38413552"/>
407b877906bSopenharmony_ci      <entry name="bgr565_a8" value="0x38413542"/>
408b877906bSopenharmony_ci      <entry name="nv24" value="0x3432564e" summary="non-subsampled Cr:Cb plane"/>
409b877906bSopenharmony_ci      <entry name="nv42" value="0x3234564e" summary="non-subsampled Cb:Cr plane"/>
410b877906bSopenharmony_ci      <entry name="p210" value="0x30313250" summary="2x1 subsampled Cr:Cb plane, 10 bit per channel"/>
411b877906bSopenharmony_ci      <entry name="p010" value="0x30313050" summary="2x2 subsampled Cr:Cb plane 10 bits per channel"/>
412b877906bSopenharmony_ci      <entry name="p012" value="0x32313050" summary="2x2 subsampled Cr:Cb plane 12 bits per channel"/>
413b877906bSopenharmony_ci      <entry name="p016" value="0x36313050" summary="2x2 subsampled Cr:Cb plane 16 bits per channel"/>
414b877906bSopenharmony_ci      <entry name="axbxgxrx106106106106" value="0x30314241" summary="[63:0] A:x:B:x:G:x:R:x 10:6:10:6:10:6:10:6 little endian"/>
415b877906bSopenharmony_ci      <entry name="nv15" value="0x3531564e" summary="2x2 subsampled Cr:Cb plane"/>
416b877906bSopenharmony_ci      <entry name="q410" value="0x30313451"/>
417b877906bSopenharmony_ci      <entry name="q401" value="0x31303451"/>
418b877906bSopenharmony_ci      <entry name="xrgb16161616" value="0x38345258" summary="[63:0] x:R:G:B 16:16:16:16 little endian"/>
419b877906bSopenharmony_ci      <entry name="xbgr16161616" value="0x38344258" summary="[63:0] x:B:G:R 16:16:16:16 little endian"/>
420b877906bSopenharmony_ci      <entry name="argb16161616" value="0x38345241" summary="[63:0] A:R:G:B 16:16:16:16 little endian"/>
421b877906bSopenharmony_ci      <entry name="abgr16161616" value="0x38344241" summary="[63:0] A:B:G:R 16:16:16:16 little endian"/>
422b877906bSopenharmony_ci    </enum>
423b877906bSopenharmony_ci
424b877906bSopenharmony_ci    <request name="create_pool">
425b877906bSopenharmony_ci      <description summary="create a shm pool">
426b877906bSopenharmony_ci	Create a new wl_shm_pool object.
427b877906bSopenharmony_ci
428b877906bSopenharmony_ci	The pool can be used to create shared memory based buffer
429b877906bSopenharmony_ci	objects.  The server will mmap size bytes of the passed file
430b877906bSopenharmony_ci	descriptor, to use as backing memory for the pool.
431b877906bSopenharmony_ci      </description>
432b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_shm_pool" summary="pool to create"/>
433b877906bSopenharmony_ci      <arg name="fd" type="fd" summary="file descriptor for the pool"/>
434b877906bSopenharmony_ci      <arg name="size" type="int" summary="pool size, in bytes"/>
435b877906bSopenharmony_ci    </request>
436b877906bSopenharmony_ci
437b877906bSopenharmony_ci    <event name="format">
438b877906bSopenharmony_ci      <description summary="pixel format description">
439b877906bSopenharmony_ci	Informs the client about a valid pixel format that
440b877906bSopenharmony_ci	can be used for buffers. Known formats include
441b877906bSopenharmony_ci	argb8888 and xrgb8888.
442b877906bSopenharmony_ci      </description>
443b877906bSopenharmony_ci      <arg name="format" type="uint" enum="format" summary="buffer pixel format"/>
444b877906bSopenharmony_ci    </event>
445b877906bSopenharmony_ci  </interface>
446b877906bSopenharmony_ci
447b877906bSopenharmony_ci  <interface name="wl_buffer" version="1">
448b877906bSopenharmony_ci    <description summary="content for a wl_surface">
449b877906bSopenharmony_ci      A buffer provides the content for a wl_surface. Buffers are
450b877906bSopenharmony_ci      created through factory interfaces such as wl_shm, wp_linux_buffer_params
451b877906bSopenharmony_ci      (from the linux-dmabuf protocol extension) or similar. It has a width and
452b877906bSopenharmony_ci      a height and can be attached to a wl_surface, but the mechanism by which a
453b877906bSopenharmony_ci      client provides and updates the contents is defined by the buffer factory
454b877906bSopenharmony_ci      interface.
455b877906bSopenharmony_ci
456b877906bSopenharmony_ci      If the buffer uses a format that has an alpha channel, the alpha channel
457b877906bSopenharmony_ci      is assumed to be premultiplied in the color channels unless otherwise
458b877906bSopenharmony_ci      specified.
459b877906bSopenharmony_ci
460b877906bSopenharmony_ci      Note, because wl_buffer objects are created from multiple independent
461b877906bSopenharmony_ci      factory interfaces, the wl_buffer interface is frozen at version 1.
462b877906bSopenharmony_ci    </description>
463b877906bSopenharmony_ci
464b877906bSopenharmony_ci    <request name="destroy" type="destructor">
465b877906bSopenharmony_ci      <description summary="destroy a buffer">
466b877906bSopenharmony_ci	Destroy a buffer. If and how you need to release the backing
467b877906bSopenharmony_ci	storage is defined by the buffer factory interface.
468b877906bSopenharmony_ci
469b877906bSopenharmony_ci	For possible side-effects to a surface, see wl_surface.attach.
470b877906bSopenharmony_ci      </description>
471b877906bSopenharmony_ci    </request>
472b877906bSopenharmony_ci
473b877906bSopenharmony_ci    <event name="release">
474b877906bSopenharmony_ci      <description summary="compositor releases buffer">
475b877906bSopenharmony_ci	Sent when this wl_buffer is no longer used by the compositor.
476b877906bSopenharmony_ci	The client is now free to reuse or destroy this buffer and its
477b877906bSopenharmony_ci	backing storage.
478b877906bSopenharmony_ci
479b877906bSopenharmony_ci	If a client receives a release event before the frame callback
480b877906bSopenharmony_ci	requested in the same wl_surface.commit that attaches this
481b877906bSopenharmony_ci	wl_buffer to a surface, then the client is immediately free to
482b877906bSopenharmony_ci	reuse the buffer and its backing storage, and does not need a
483b877906bSopenharmony_ci	second buffer for the next surface content update. Typically
484b877906bSopenharmony_ci	this is possible, when the compositor maintains a copy of the
485b877906bSopenharmony_ci	wl_surface contents, e.g. as a GL texture. This is an important
486b877906bSopenharmony_ci	optimization for GL(ES) compositors with wl_shm clients.
487b877906bSopenharmony_ci      </description>
488b877906bSopenharmony_ci    </event>
489b877906bSopenharmony_ci  </interface>
490b877906bSopenharmony_ci
491b877906bSopenharmony_ci  <interface name="wl_data_offer" version="3">
492b877906bSopenharmony_ci    <description summary="offer to transfer data">
493b877906bSopenharmony_ci      A wl_data_offer represents a piece of data offered for transfer
494b877906bSopenharmony_ci      by another client (the source client).  It is used by the
495b877906bSopenharmony_ci      copy-and-paste and drag-and-drop mechanisms.  The offer
496b877906bSopenharmony_ci      describes the different mime types that the data can be
497b877906bSopenharmony_ci      converted to and provides the mechanism for transferring the
498b877906bSopenharmony_ci      data directly from the source client.
499b877906bSopenharmony_ci    </description>
500b877906bSopenharmony_ci
501b877906bSopenharmony_ci    <enum name="error">
502b877906bSopenharmony_ci      <entry name="invalid_finish" value="0"
503b877906bSopenharmony_ci	     summary="finish request was called untimely"/>
504b877906bSopenharmony_ci      <entry name="invalid_action_mask" value="1"
505b877906bSopenharmony_ci	     summary="action mask contains invalid values"/>
506b877906bSopenharmony_ci      <entry name="invalid_action" value="2"
507b877906bSopenharmony_ci	     summary="action argument has an invalid value"/>
508b877906bSopenharmony_ci      <entry name="invalid_offer" value="3"
509b877906bSopenharmony_ci	     summary="offer doesn't accept this request"/>
510b877906bSopenharmony_ci    </enum>
511b877906bSopenharmony_ci
512b877906bSopenharmony_ci    <request name="accept">
513b877906bSopenharmony_ci      <description summary="accept one of the offered mime types">
514b877906bSopenharmony_ci	Indicate that the client can accept the given mime type, or
515b877906bSopenharmony_ci	NULL for not accepted.
516b877906bSopenharmony_ci
517b877906bSopenharmony_ci	For objects of version 2 or older, this request is used by the
518b877906bSopenharmony_ci	client to give feedback whether the client can receive the given
519b877906bSopenharmony_ci	mime type, or NULL if none is accepted; the feedback does not
520b877906bSopenharmony_ci	determine whether the drag-and-drop operation succeeds or not.
521b877906bSopenharmony_ci
522b877906bSopenharmony_ci	For objects of version 3 or newer, this request determines the
523b877906bSopenharmony_ci	final result of the drag-and-drop operation. If the end result
524b877906bSopenharmony_ci	is that no mime types were accepted, the drag-and-drop operation
525b877906bSopenharmony_ci	will be cancelled and the corresponding drag source will receive
526b877906bSopenharmony_ci	wl_data_source.cancelled. Clients may still use this event in
527b877906bSopenharmony_ci	conjunction with wl_data_source.action for feedback.
528b877906bSopenharmony_ci      </description>
529b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the accept request"/>
530b877906bSopenharmony_ci      <arg name="mime_type" type="string" allow-null="true" summary="mime type accepted by the client"/>
531b877906bSopenharmony_ci    </request>
532b877906bSopenharmony_ci
533b877906bSopenharmony_ci    <request name="receive">
534b877906bSopenharmony_ci      <description summary="request that the data is transferred">
535b877906bSopenharmony_ci	To transfer the offered data, the client issues this request
536b877906bSopenharmony_ci	and indicates the mime type it wants to receive.  The transfer
537b877906bSopenharmony_ci	happens through the passed file descriptor (typically created
538b877906bSopenharmony_ci	with the pipe system call).  The source client writes the data
539b877906bSopenharmony_ci	in the mime type representation requested and then closes the
540b877906bSopenharmony_ci	file descriptor.
541b877906bSopenharmony_ci
542b877906bSopenharmony_ci	The receiving client reads from the read end of the pipe until
543b877906bSopenharmony_ci	EOF and then closes its end, at which point the transfer is
544b877906bSopenharmony_ci	complete.
545b877906bSopenharmony_ci
546b877906bSopenharmony_ci	This request may happen multiple times for different mime types,
547b877906bSopenharmony_ci	both before and after wl_data_device.drop. Drag-and-drop destination
548b877906bSopenharmony_ci	clients may preemptively fetch data or examine it more closely to
549b877906bSopenharmony_ci	determine acceptance.
550b877906bSopenharmony_ci      </description>
551b877906bSopenharmony_ci      <arg name="mime_type" type="string" summary="mime type desired by receiver"/>
552b877906bSopenharmony_ci      <arg name="fd" type="fd" summary="file descriptor for data transfer"/>
553b877906bSopenharmony_ci    </request>
554b877906bSopenharmony_ci
555b877906bSopenharmony_ci    <request name="destroy" type="destructor">
556b877906bSopenharmony_ci      <description summary="destroy data offer">
557b877906bSopenharmony_ci	Destroy the data offer.
558b877906bSopenharmony_ci      </description>
559b877906bSopenharmony_ci    </request>
560b877906bSopenharmony_ci
561b877906bSopenharmony_ci    <event name="offer">
562b877906bSopenharmony_ci      <description summary="advertise offered mime type">
563b877906bSopenharmony_ci	Sent immediately after creating the wl_data_offer object.  One
564b877906bSopenharmony_ci	event per offered mime type.
565b877906bSopenharmony_ci      </description>
566b877906bSopenharmony_ci      <arg name="mime_type" type="string" summary="offered mime type"/>
567b877906bSopenharmony_ci    </event>
568b877906bSopenharmony_ci
569b877906bSopenharmony_ci    <!-- Version 3 additions -->
570b877906bSopenharmony_ci
571b877906bSopenharmony_ci    <request name="finish" since="3">
572b877906bSopenharmony_ci      <description summary="the offer will no longer be used">
573b877906bSopenharmony_ci	Notifies the compositor that the drag destination successfully
574b877906bSopenharmony_ci	finished the drag-and-drop operation.
575b877906bSopenharmony_ci
576b877906bSopenharmony_ci	Upon receiving this request, the compositor will emit
577b877906bSopenharmony_ci	wl_data_source.dnd_finished on the drag source client.
578b877906bSopenharmony_ci
579b877906bSopenharmony_ci	It is a client error to perform other requests than
580b877906bSopenharmony_ci	wl_data_offer.destroy after this one. It is also an error to perform
581b877906bSopenharmony_ci	this request after a NULL mime type has been set in
582b877906bSopenharmony_ci	wl_data_offer.accept or no action was received through
583b877906bSopenharmony_ci	wl_data_offer.action.
584b877906bSopenharmony_ci
585b877906bSopenharmony_ci	If wl_data_offer.finish request is received for a non drag and drop
586b877906bSopenharmony_ci	operation, the invalid_finish protocol error is raised.
587b877906bSopenharmony_ci      </description>
588b877906bSopenharmony_ci    </request>
589b877906bSopenharmony_ci
590b877906bSopenharmony_ci    <request name="set_actions" since="3">
591b877906bSopenharmony_ci      <description summary="set the available/preferred drag-and-drop actions">
592b877906bSopenharmony_ci	Sets the actions that the destination side client supports for
593b877906bSopenharmony_ci	this operation. This request may trigger the emission of
594b877906bSopenharmony_ci	wl_data_source.action and wl_data_offer.action events if the compositor
595b877906bSopenharmony_ci	needs to change the selected action.
596b877906bSopenharmony_ci
597b877906bSopenharmony_ci	This request can be called multiple times throughout the
598b877906bSopenharmony_ci	drag-and-drop operation, typically in response to wl_data_device.enter
599b877906bSopenharmony_ci	or wl_data_device.motion events.
600b877906bSopenharmony_ci
601b877906bSopenharmony_ci	This request determines the final result of the drag-and-drop
602b877906bSopenharmony_ci	operation. If the end result is that no action is accepted,
603b877906bSopenharmony_ci	the drag source will receive wl_data_source.cancelled.
604b877906bSopenharmony_ci
605b877906bSopenharmony_ci	The dnd_actions argument must contain only values expressed in the
606b877906bSopenharmony_ci	wl_data_device_manager.dnd_actions enum, and the preferred_action
607b877906bSopenharmony_ci	argument must only contain one of those values set, otherwise it
608b877906bSopenharmony_ci	will result in a protocol error.
609b877906bSopenharmony_ci
610b877906bSopenharmony_ci	While managing an "ask" action, the destination drag-and-drop client
611b877906bSopenharmony_ci	may perform further wl_data_offer.receive requests, and is expected
612b877906bSopenharmony_ci	to perform one last wl_data_offer.set_actions request with a preferred
613b877906bSopenharmony_ci	action other than "ask" (and optionally wl_data_offer.accept) before
614b877906bSopenharmony_ci	requesting wl_data_offer.finish, in order to convey the action selected
615b877906bSopenharmony_ci	by the user. If the preferred action is not in the
616b877906bSopenharmony_ci	wl_data_offer.source_actions mask, an error will be raised.
617b877906bSopenharmony_ci
618b877906bSopenharmony_ci	If the "ask" action is dismissed (e.g. user cancellation), the client
619b877906bSopenharmony_ci	is expected to perform wl_data_offer.destroy right away.
620b877906bSopenharmony_ci
621b877906bSopenharmony_ci	This request can only be made on drag-and-drop offers, a protocol error
622b877906bSopenharmony_ci	will be raised otherwise.
623b877906bSopenharmony_ci      </description>
624b877906bSopenharmony_ci      <arg name="dnd_actions" type="uint" summary="actions supported by the destination client"
625b877906bSopenharmony_ci	   enum="wl_data_device_manager.dnd_action"/>
626b877906bSopenharmony_ci      <arg name="preferred_action" type="uint" summary="action preferred by the destination client"
627b877906bSopenharmony_ci	   enum="wl_data_device_manager.dnd_action"/>
628b877906bSopenharmony_ci    </request>
629b877906bSopenharmony_ci
630b877906bSopenharmony_ci    <event name="source_actions" since="3">
631b877906bSopenharmony_ci      <description summary="notify the source-side available actions">
632b877906bSopenharmony_ci	This event indicates the actions offered by the data source. It
633b877906bSopenharmony_ci	will be sent immediately after creating the wl_data_offer object,
634b877906bSopenharmony_ci	or anytime the source side changes its offered actions through
635b877906bSopenharmony_ci	wl_data_source.set_actions.
636b877906bSopenharmony_ci      </description>
637b877906bSopenharmony_ci      <arg name="source_actions" type="uint" summary="actions offered by the data source"
638b877906bSopenharmony_ci	   enum="wl_data_device_manager.dnd_action"/>
639b877906bSopenharmony_ci    </event>
640b877906bSopenharmony_ci
641b877906bSopenharmony_ci    <event name="action" since="3">
642b877906bSopenharmony_ci      <description summary="notify the selected action">
643b877906bSopenharmony_ci	This event indicates the action selected by the compositor after
644b877906bSopenharmony_ci	matching the source/destination side actions. Only one action (or
645b877906bSopenharmony_ci	none) will be offered here.
646b877906bSopenharmony_ci
647b877906bSopenharmony_ci	This event can be emitted multiple times during the drag-and-drop
648b877906bSopenharmony_ci	operation in response to destination side action changes through
649b877906bSopenharmony_ci	wl_data_offer.set_actions.
650b877906bSopenharmony_ci
651b877906bSopenharmony_ci	This event will no longer be emitted after wl_data_device.drop
652b877906bSopenharmony_ci	happened on the drag-and-drop destination, the client must
653b877906bSopenharmony_ci	honor the last action received, or the last preferred one set
654b877906bSopenharmony_ci	through wl_data_offer.set_actions when handling an "ask" action.
655b877906bSopenharmony_ci
656b877906bSopenharmony_ci	Compositors may also change the selected action on the fly, mainly
657b877906bSopenharmony_ci	in response to keyboard modifier changes during the drag-and-drop
658b877906bSopenharmony_ci	operation.
659b877906bSopenharmony_ci
660b877906bSopenharmony_ci	The most recent action received is always the valid one. Prior to
661b877906bSopenharmony_ci	receiving wl_data_device.drop, the chosen action may change (e.g.
662b877906bSopenharmony_ci	due to keyboard modifiers being pressed). At the time of receiving
663b877906bSopenharmony_ci	wl_data_device.drop the drag-and-drop destination must honor the
664b877906bSopenharmony_ci	last action received.
665b877906bSopenharmony_ci
666b877906bSopenharmony_ci	Action changes may still happen after wl_data_device.drop,
667b877906bSopenharmony_ci	especially on "ask" actions, where the drag-and-drop destination
668b877906bSopenharmony_ci	may choose another action afterwards. Action changes happening
669b877906bSopenharmony_ci	at this stage are always the result of inter-client negotiation, the
670b877906bSopenharmony_ci	compositor shall no longer be able to induce a different action.
671b877906bSopenharmony_ci
672b877906bSopenharmony_ci	Upon "ask" actions, it is expected that the drag-and-drop destination
673b877906bSopenharmony_ci	may potentially choose a different action and/or mime type,
674b877906bSopenharmony_ci	based on wl_data_offer.source_actions and finally chosen by the
675b877906bSopenharmony_ci	user (e.g. popping up a menu with the available options). The
676b877906bSopenharmony_ci	final wl_data_offer.set_actions and wl_data_offer.accept requests
677b877906bSopenharmony_ci	must happen before the call to wl_data_offer.finish.
678b877906bSopenharmony_ci      </description>
679b877906bSopenharmony_ci      <arg name="dnd_action" type="uint" summary="action selected by the compositor"
680b877906bSopenharmony_ci	   enum="wl_data_device_manager.dnd_action"/>
681b877906bSopenharmony_ci    </event>
682b877906bSopenharmony_ci  </interface>
683b877906bSopenharmony_ci
684b877906bSopenharmony_ci  <interface name="wl_data_source" version="3">
685b877906bSopenharmony_ci    <description summary="offer to transfer data">
686b877906bSopenharmony_ci      The wl_data_source object is the source side of a wl_data_offer.
687b877906bSopenharmony_ci      It is created by the source client in a data transfer and
688b877906bSopenharmony_ci      provides a way to describe the offered data and a way to respond
689b877906bSopenharmony_ci      to requests to transfer the data.
690b877906bSopenharmony_ci    </description>
691b877906bSopenharmony_ci
692b877906bSopenharmony_ci    <enum name="error">
693b877906bSopenharmony_ci      <entry name="invalid_action_mask" value="0"
694b877906bSopenharmony_ci	     summary="action mask contains invalid values"/>
695b877906bSopenharmony_ci      <entry name="invalid_source" value="1"
696b877906bSopenharmony_ci	     summary="source doesn't accept this request"/>
697b877906bSopenharmony_ci    </enum>
698b877906bSopenharmony_ci
699b877906bSopenharmony_ci    <request name="offer">
700b877906bSopenharmony_ci      <description summary="add an offered mime type">
701b877906bSopenharmony_ci	This request adds a mime type to the set of mime types
702b877906bSopenharmony_ci	advertised to targets.  Can be called several times to offer
703b877906bSopenharmony_ci	multiple types.
704b877906bSopenharmony_ci      </description>
705b877906bSopenharmony_ci      <arg name="mime_type" type="string" summary="mime type offered by the data source"/>
706b877906bSopenharmony_ci    </request>
707b877906bSopenharmony_ci
708b877906bSopenharmony_ci    <request name="destroy" type="destructor">
709b877906bSopenharmony_ci      <description summary="destroy the data source">
710b877906bSopenharmony_ci	Destroy the data source.
711b877906bSopenharmony_ci      </description>
712b877906bSopenharmony_ci    </request>
713b877906bSopenharmony_ci
714b877906bSopenharmony_ci    <event name="target">
715b877906bSopenharmony_ci      <description summary="a target accepts an offered mime type">
716b877906bSopenharmony_ci	Sent when a target accepts pointer_focus or motion events.  If
717b877906bSopenharmony_ci	a target does not accept any of the offered types, type is NULL.
718b877906bSopenharmony_ci
719b877906bSopenharmony_ci	Used for feedback during drag-and-drop.
720b877906bSopenharmony_ci      </description>
721b877906bSopenharmony_ci      <arg name="mime_type" type="string" allow-null="true" summary="mime type accepted by the target"/>
722b877906bSopenharmony_ci    </event>
723b877906bSopenharmony_ci
724b877906bSopenharmony_ci    <event name="send">
725b877906bSopenharmony_ci      <description summary="send the data">
726b877906bSopenharmony_ci	Request for data from the client.  Send the data as the
727b877906bSopenharmony_ci	specified mime type over the passed file descriptor, then
728b877906bSopenharmony_ci	close it.
729b877906bSopenharmony_ci      </description>
730b877906bSopenharmony_ci      <arg name="mime_type" type="string" summary="mime type for the data"/>
731b877906bSopenharmony_ci      <arg name="fd" type="fd" summary="file descriptor for the data"/>
732b877906bSopenharmony_ci    </event>
733b877906bSopenharmony_ci
734b877906bSopenharmony_ci    <event name="cancelled">
735b877906bSopenharmony_ci      <description summary="selection was cancelled">
736b877906bSopenharmony_ci	This data source is no longer valid. There are several reasons why
737b877906bSopenharmony_ci	this could happen:
738b877906bSopenharmony_ci
739b877906bSopenharmony_ci	- The data source has been replaced by another data source.
740b877906bSopenharmony_ci	- The drag-and-drop operation was performed, but the drop destination
741b877906bSopenharmony_ci	  did not accept any of the mime types offered through
742b877906bSopenharmony_ci	  wl_data_source.target.
743b877906bSopenharmony_ci	- The drag-and-drop operation was performed, but the drop destination
744b877906bSopenharmony_ci	  did not select any of the actions present in the mask offered through
745b877906bSopenharmony_ci	  wl_data_source.action.
746b877906bSopenharmony_ci	- The drag-and-drop operation was performed but didn't happen over a
747b877906bSopenharmony_ci	  surface.
748b877906bSopenharmony_ci	- The compositor cancelled the drag-and-drop operation (e.g. compositor
749b877906bSopenharmony_ci	  dependent timeouts to avoid stale drag-and-drop transfers).
750b877906bSopenharmony_ci
751b877906bSopenharmony_ci	The client should clean up and destroy this data source.
752b877906bSopenharmony_ci
753b877906bSopenharmony_ci	For objects of version 2 or older, wl_data_source.cancelled will
754b877906bSopenharmony_ci	only be emitted if the data source was replaced by another data
755b877906bSopenharmony_ci	source.
756b877906bSopenharmony_ci      </description>
757b877906bSopenharmony_ci    </event>
758b877906bSopenharmony_ci
759b877906bSopenharmony_ci    <!-- Version 3 additions -->
760b877906bSopenharmony_ci
761b877906bSopenharmony_ci    <request name="set_actions" since="3">
762b877906bSopenharmony_ci      <description summary="set the available drag-and-drop actions">
763b877906bSopenharmony_ci	Sets the actions that the source side client supports for this
764b877906bSopenharmony_ci	operation. This request may trigger wl_data_source.action and
765b877906bSopenharmony_ci	wl_data_offer.action events if the compositor needs to change the
766b877906bSopenharmony_ci	selected action.
767b877906bSopenharmony_ci
768b877906bSopenharmony_ci	The dnd_actions argument must contain only values expressed in the
769b877906bSopenharmony_ci	wl_data_device_manager.dnd_actions enum, otherwise it will result
770b877906bSopenharmony_ci	in a protocol error.
771b877906bSopenharmony_ci
772b877906bSopenharmony_ci	This request must be made once only, and can only be made on sources
773b877906bSopenharmony_ci	used in drag-and-drop, so it must be performed before
774b877906bSopenharmony_ci	wl_data_device.start_drag. Attempting to use the source other than
775b877906bSopenharmony_ci	for drag-and-drop will raise a protocol error.
776b877906bSopenharmony_ci      </description>
777b877906bSopenharmony_ci      <arg name="dnd_actions" type="uint" summary="actions supported by the data source"
778b877906bSopenharmony_ci	   enum="wl_data_device_manager.dnd_action"/>
779b877906bSopenharmony_ci    </request>
780b877906bSopenharmony_ci
781b877906bSopenharmony_ci    <event name="dnd_drop_performed" since="3">
782b877906bSopenharmony_ci      <description summary="the drag-and-drop operation physically finished">
783b877906bSopenharmony_ci	The user performed the drop action. This event does not indicate
784b877906bSopenharmony_ci	acceptance, wl_data_source.cancelled may still be emitted afterwards
785b877906bSopenharmony_ci	if the drop destination does not accept any mime type.
786b877906bSopenharmony_ci
787b877906bSopenharmony_ci	However, this event might however not be received if the compositor
788b877906bSopenharmony_ci	cancelled the drag-and-drop operation before this event could happen.
789b877906bSopenharmony_ci
790b877906bSopenharmony_ci	Note that the data_source may still be used in the future and should
791b877906bSopenharmony_ci	not be destroyed here.
792b877906bSopenharmony_ci      </description>
793b877906bSopenharmony_ci    </event>
794b877906bSopenharmony_ci
795b877906bSopenharmony_ci    <event name="dnd_finished" since="3">
796b877906bSopenharmony_ci      <description summary="the drag-and-drop operation concluded">
797b877906bSopenharmony_ci	The drop destination finished interoperating with this data
798b877906bSopenharmony_ci	source, so the client is now free to destroy this data source and
799b877906bSopenharmony_ci	free all associated data.
800b877906bSopenharmony_ci
801b877906bSopenharmony_ci	If the action used to perform the operation was "move", the
802b877906bSopenharmony_ci	source can now delete the transferred data.
803b877906bSopenharmony_ci      </description>
804b877906bSopenharmony_ci    </event>
805b877906bSopenharmony_ci
806b877906bSopenharmony_ci    <event name="action" since="3">
807b877906bSopenharmony_ci      <description summary="notify the selected action">
808b877906bSopenharmony_ci	This event indicates the action selected by the compositor after
809b877906bSopenharmony_ci	matching the source/destination side actions. Only one action (or
810b877906bSopenharmony_ci	none) will be offered here.
811b877906bSopenharmony_ci
812b877906bSopenharmony_ci	This event can be emitted multiple times during the drag-and-drop
813b877906bSopenharmony_ci	operation, mainly in response to destination side changes through
814b877906bSopenharmony_ci	wl_data_offer.set_actions, and as the data device enters/leaves
815b877906bSopenharmony_ci	surfaces.
816b877906bSopenharmony_ci
817b877906bSopenharmony_ci	It is only possible to receive this event after
818b877906bSopenharmony_ci	wl_data_source.dnd_drop_performed if the drag-and-drop operation
819b877906bSopenharmony_ci	ended in an "ask" action, in which case the final wl_data_source.action
820b877906bSopenharmony_ci	event will happen immediately before wl_data_source.dnd_finished.
821b877906bSopenharmony_ci
822b877906bSopenharmony_ci	Compositors may also change the selected action on the fly, mainly
823b877906bSopenharmony_ci	in response to keyboard modifier changes during the drag-and-drop
824b877906bSopenharmony_ci	operation.
825b877906bSopenharmony_ci
826b877906bSopenharmony_ci	The most recent action received is always the valid one. The chosen
827b877906bSopenharmony_ci	action may change alongside negotiation (e.g. an "ask" action can turn
828b877906bSopenharmony_ci	into a "move" operation), so the effects of the final action must
829b877906bSopenharmony_ci	always be applied in wl_data_offer.dnd_finished.
830b877906bSopenharmony_ci
831b877906bSopenharmony_ci	Clients can trigger cursor surface changes from this point, so
832b877906bSopenharmony_ci	they reflect the current action.
833b877906bSopenharmony_ci      </description>
834b877906bSopenharmony_ci      <arg name="dnd_action" type="uint" summary="action selected by the compositor"
835b877906bSopenharmony_ci	   enum="wl_data_device_manager.dnd_action"/>
836b877906bSopenharmony_ci    </event>
837b877906bSopenharmony_ci  </interface>
838b877906bSopenharmony_ci
839b877906bSopenharmony_ci  <interface name="wl_data_device" version="3">
840b877906bSopenharmony_ci    <description summary="data transfer device">
841b877906bSopenharmony_ci      There is one wl_data_device per seat which can be obtained
842b877906bSopenharmony_ci      from the global wl_data_device_manager singleton.
843b877906bSopenharmony_ci
844b877906bSopenharmony_ci      A wl_data_device provides access to inter-client data transfer
845b877906bSopenharmony_ci      mechanisms such as copy-and-paste and drag-and-drop.
846b877906bSopenharmony_ci    </description>
847b877906bSopenharmony_ci
848b877906bSopenharmony_ci    <enum name="error">
849b877906bSopenharmony_ci      <entry name="role" value="0" summary="given wl_surface has another role"/>
850b877906bSopenharmony_ci    </enum>
851b877906bSopenharmony_ci
852b877906bSopenharmony_ci    <request name="start_drag">
853b877906bSopenharmony_ci      <description summary="start drag-and-drop operation">
854b877906bSopenharmony_ci	This request asks the compositor to start a drag-and-drop
855b877906bSopenharmony_ci	operation on behalf of the client.
856b877906bSopenharmony_ci
857b877906bSopenharmony_ci	The source argument is the data source that provides the data
858b877906bSopenharmony_ci	for the eventual data transfer. If source is NULL, enter, leave
859b877906bSopenharmony_ci	and motion events are sent only to the client that initiated the
860b877906bSopenharmony_ci	drag and the client is expected to handle the data passing
861b877906bSopenharmony_ci	internally. If source is destroyed, the drag-and-drop session will be
862b877906bSopenharmony_ci	cancelled.
863b877906bSopenharmony_ci
864b877906bSopenharmony_ci	The origin surface is the surface where the drag originates and
865b877906bSopenharmony_ci	the client must have an active implicit grab that matches the
866b877906bSopenharmony_ci	serial.
867b877906bSopenharmony_ci
868b877906bSopenharmony_ci	The icon surface is an optional (can be NULL) surface that
869b877906bSopenharmony_ci	provides an icon to be moved around with the cursor.  Initially,
870b877906bSopenharmony_ci	the top-left corner of the icon surface is placed at the cursor
871b877906bSopenharmony_ci	hotspot, but subsequent wl_surface.attach request can move the
872b877906bSopenharmony_ci	relative position. Attach requests must be confirmed with
873b877906bSopenharmony_ci	wl_surface.commit as usual. The icon surface is given the role of
874b877906bSopenharmony_ci	a drag-and-drop icon. If the icon surface already has another role,
875b877906bSopenharmony_ci	it raises a protocol error.
876b877906bSopenharmony_ci
877b877906bSopenharmony_ci	The input region is ignored for wl_surfaces with the role of a
878b877906bSopenharmony_ci	drag-and-drop icon.
879b877906bSopenharmony_ci      </description>
880b877906bSopenharmony_ci      <arg name="source" type="object" interface="wl_data_source" allow-null="true" summary="data source for the eventual transfer"/>
881b877906bSopenharmony_ci      <arg name="origin" type="object" interface="wl_surface" summary="surface where the drag originates"/>
882b877906bSopenharmony_ci      <arg name="icon" type="object" interface="wl_surface" allow-null="true" summary="drag-and-drop icon surface"/>
883b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the implicit grab on the origin"/>
884b877906bSopenharmony_ci    </request>
885b877906bSopenharmony_ci
886b877906bSopenharmony_ci    <request name="set_selection">
887b877906bSopenharmony_ci      <description summary="copy data to the selection">
888b877906bSopenharmony_ci	This request asks the compositor to set the selection
889b877906bSopenharmony_ci	to the data from the source on behalf of the client.
890b877906bSopenharmony_ci
891b877906bSopenharmony_ci	To unset the selection, set the source to NULL.
892b877906bSopenharmony_ci      </description>
893b877906bSopenharmony_ci      <arg name="source" type="object" interface="wl_data_source" allow-null="true" summary="data source for the selection"/>
894b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the event that triggered this request"/>
895b877906bSopenharmony_ci    </request>
896b877906bSopenharmony_ci
897b877906bSopenharmony_ci    <event name="data_offer">
898b877906bSopenharmony_ci      <description summary="introduce a new wl_data_offer">
899b877906bSopenharmony_ci	The data_offer event introduces a new wl_data_offer object,
900b877906bSopenharmony_ci	which will subsequently be used in either the
901b877906bSopenharmony_ci	data_device.enter event (for drag-and-drop) or the
902b877906bSopenharmony_ci	data_device.selection event (for selections).  Immediately
903b877906bSopenharmony_ci	following the data_device.data_offer event, the new data_offer
904b877906bSopenharmony_ci	object will send out data_offer.offer events to describe the
905b877906bSopenharmony_ci	mime types it offers.
906b877906bSopenharmony_ci      </description>
907b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_data_offer" summary="the new data_offer object"/>
908b877906bSopenharmony_ci    </event>
909b877906bSopenharmony_ci
910b877906bSopenharmony_ci    <event name="enter">
911b877906bSopenharmony_ci      <description summary="initiate drag-and-drop session">
912b877906bSopenharmony_ci	This event is sent when an active drag-and-drop pointer enters
913b877906bSopenharmony_ci	a surface owned by the client.  The position of the pointer at
914b877906bSopenharmony_ci	enter time is provided by the x and y arguments, in surface-local
915b877906bSopenharmony_ci	coordinates.
916b877906bSopenharmony_ci      </description>
917b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the enter event"/>
918b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" summary="client surface entered"/>
919b877906bSopenharmony_ci      <arg name="x" type="fixed" summary="surface-local x coordinate"/>
920b877906bSopenharmony_ci      <arg name="y" type="fixed" summary="surface-local y coordinate"/>
921b877906bSopenharmony_ci      <arg name="id" type="object" interface="wl_data_offer" allow-null="true"
922b877906bSopenharmony_ci	   summary="source data_offer object"/>
923b877906bSopenharmony_ci    </event>
924b877906bSopenharmony_ci
925b877906bSopenharmony_ci    <event name="leave">
926b877906bSopenharmony_ci      <description summary="end drag-and-drop session">
927b877906bSopenharmony_ci	This event is sent when the drag-and-drop pointer leaves the
928b877906bSopenharmony_ci	surface and the session ends.  The client must destroy the
929b877906bSopenharmony_ci	wl_data_offer introduced at enter time at this point.
930b877906bSopenharmony_ci      </description>
931b877906bSopenharmony_ci    </event>
932b877906bSopenharmony_ci
933b877906bSopenharmony_ci    <event name="motion">
934b877906bSopenharmony_ci      <description summary="drag-and-drop session motion">
935b877906bSopenharmony_ci	This event is sent when the drag-and-drop pointer moves within
936b877906bSopenharmony_ci	the currently focused surface. The new position of the pointer
937b877906bSopenharmony_ci	is provided by the x and y arguments, in surface-local
938b877906bSopenharmony_ci	coordinates.
939b877906bSopenharmony_ci      </description>
940b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
941b877906bSopenharmony_ci      <arg name="x" type="fixed" summary="surface-local x coordinate"/>
942b877906bSopenharmony_ci      <arg name="y" type="fixed" summary="surface-local y coordinate"/>
943b877906bSopenharmony_ci    </event>
944b877906bSopenharmony_ci
945b877906bSopenharmony_ci    <event name="drop">
946b877906bSopenharmony_ci      <description summary="end drag-and-drop session successfully">
947b877906bSopenharmony_ci	The event is sent when a drag-and-drop operation is ended
948b877906bSopenharmony_ci	because the implicit grab is removed.
949b877906bSopenharmony_ci
950b877906bSopenharmony_ci	The drag-and-drop destination is expected to honor the last action
951b877906bSopenharmony_ci	received through wl_data_offer.action, if the resulting action is
952b877906bSopenharmony_ci	"copy" or "move", the destination can still perform
953b877906bSopenharmony_ci	wl_data_offer.receive requests, and is expected to end all
954b877906bSopenharmony_ci	transfers with a wl_data_offer.finish request.
955b877906bSopenharmony_ci
956b877906bSopenharmony_ci	If the resulting action is "ask", the action will not be considered
957b877906bSopenharmony_ci	final. The drag-and-drop destination is expected to perform one last
958b877906bSopenharmony_ci	wl_data_offer.set_actions request, or wl_data_offer.destroy in order
959b877906bSopenharmony_ci	to cancel the operation.
960b877906bSopenharmony_ci      </description>
961b877906bSopenharmony_ci    </event>
962b877906bSopenharmony_ci
963b877906bSopenharmony_ci    <event name="selection">
964b877906bSopenharmony_ci      <description summary="advertise new selection">
965b877906bSopenharmony_ci	The selection event is sent out to notify the client of a new
966b877906bSopenharmony_ci	wl_data_offer for the selection for this device.  The
967b877906bSopenharmony_ci	data_device.data_offer and the data_offer.offer events are
968b877906bSopenharmony_ci	sent out immediately before this event to introduce the data
969b877906bSopenharmony_ci	offer object.  The selection event is sent to a client
970b877906bSopenharmony_ci	immediately before receiving keyboard focus and when a new
971b877906bSopenharmony_ci	selection is set while the client has keyboard focus.  The
972b877906bSopenharmony_ci	data_offer is valid until a new data_offer or NULL is received
973b877906bSopenharmony_ci	or until the client loses keyboard focus.  Switching surface with
974b877906bSopenharmony_ci	keyboard focus within the same client doesn't mean a new selection
975b877906bSopenharmony_ci	will be sent.  The client must destroy the previous selection
976b877906bSopenharmony_ci	data_offer, if any, upon receiving this event.
977b877906bSopenharmony_ci      </description>
978b877906bSopenharmony_ci      <arg name="id" type="object" interface="wl_data_offer" allow-null="true"
979b877906bSopenharmony_ci	   summary="selection data_offer object"/>
980b877906bSopenharmony_ci    </event>
981b877906bSopenharmony_ci
982b877906bSopenharmony_ci    <!-- Version 2 additions -->
983b877906bSopenharmony_ci
984b877906bSopenharmony_ci    <request name="release" type="destructor" since="2">
985b877906bSopenharmony_ci      <description summary="destroy data device">
986b877906bSopenharmony_ci	This request destroys the data device.
987b877906bSopenharmony_ci      </description>
988b877906bSopenharmony_ci    </request>
989b877906bSopenharmony_ci  </interface>
990b877906bSopenharmony_ci
991b877906bSopenharmony_ci  <interface name="wl_data_device_manager" version="3">
992b877906bSopenharmony_ci    <description summary="data transfer interface">
993b877906bSopenharmony_ci      The wl_data_device_manager is a singleton global object that
994b877906bSopenharmony_ci      provides access to inter-client data transfer mechanisms such as
995b877906bSopenharmony_ci      copy-and-paste and drag-and-drop.  These mechanisms are tied to
996b877906bSopenharmony_ci      a wl_seat and this interface lets a client get a wl_data_device
997b877906bSopenharmony_ci      corresponding to a wl_seat.
998b877906bSopenharmony_ci
999b877906bSopenharmony_ci      Depending on the version bound, the objects created from the bound
1000b877906bSopenharmony_ci      wl_data_device_manager object will have different requirements for
1001b877906bSopenharmony_ci      functioning properly. See wl_data_source.set_actions,
1002b877906bSopenharmony_ci      wl_data_offer.accept and wl_data_offer.finish for details.
1003b877906bSopenharmony_ci    </description>
1004b877906bSopenharmony_ci
1005b877906bSopenharmony_ci    <request name="create_data_source">
1006b877906bSopenharmony_ci      <description summary="create a new data source">
1007b877906bSopenharmony_ci	Create a new data source.
1008b877906bSopenharmony_ci      </description>
1009b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_data_source" summary="data source to create"/>
1010b877906bSopenharmony_ci    </request>
1011b877906bSopenharmony_ci
1012b877906bSopenharmony_ci    <request name="get_data_device">
1013b877906bSopenharmony_ci      <description summary="create a new data device">
1014b877906bSopenharmony_ci	Create a new data device for a given seat.
1015b877906bSopenharmony_ci      </description>
1016b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_data_device" summary="data device to create"/>
1017b877906bSopenharmony_ci      <arg name="seat" type="object" interface="wl_seat" summary="seat associated with the data device"/>
1018b877906bSopenharmony_ci    </request>
1019b877906bSopenharmony_ci
1020b877906bSopenharmony_ci    <!-- Version 3 additions -->
1021b877906bSopenharmony_ci
1022b877906bSopenharmony_ci    <enum name="dnd_action" bitfield="true" since="3">
1023b877906bSopenharmony_ci      <description summary="drag and drop actions">
1024b877906bSopenharmony_ci	This is a bitmask of the available/preferred actions in a
1025b877906bSopenharmony_ci	drag-and-drop operation.
1026b877906bSopenharmony_ci
1027b877906bSopenharmony_ci	In the compositor, the selected action is a result of matching the
1028b877906bSopenharmony_ci	actions offered by the source and destination sides.  "action" events
1029b877906bSopenharmony_ci	with a "none" action will be sent to both source and destination if
1030b877906bSopenharmony_ci	there is no match. All further checks will effectively happen on
1031b877906bSopenharmony_ci	(source actions ∩ destination actions).
1032b877906bSopenharmony_ci
1033b877906bSopenharmony_ci	In addition, compositors may also pick different actions in
1034b877906bSopenharmony_ci	reaction to key modifiers being pressed. One common design that
1035b877906bSopenharmony_ci	is used in major toolkits (and the behavior recommended for
1036b877906bSopenharmony_ci	compositors) is:
1037b877906bSopenharmony_ci
1038b877906bSopenharmony_ci	- If no modifiers are pressed, the first match (in bit order)
1039b877906bSopenharmony_ci	  will be used.
1040b877906bSopenharmony_ci	- Pressing Shift selects "move", if enabled in the mask.
1041b877906bSopenharmony_ci	- Pressing Control selects "copy", if enabled in the mask.
1042b877906bSopenharmony_ci
1043b877906bSopenharmony_ci	Behavior beyond that is considered implementation-dependent.
1044b877906bSopenharmony_ci	Compositors may for example bind other modifiers (like Alt/Meta)
1045b877906bSopenharmony_ci	or drags initiated with other buttons than BTN_LEFT to specific
1046b877906bSopenharmony_ci	actions (e.g. "ask").
1047b877906bSopenharmony_ci      </description>
1048b877906bSopenharmony_ci      <entry name="none" value="0" summary="no action"/>
1049b877906bSopenharmony_ci      <entry name="copy" value="1" summary="copy action"/>
1050b877906bSopenharmony_ci      <entry name="move" value="2" summary="move action"/>
1051b877906bSopenharmony_ci      <entry name="ask" value="4" summary="ask action"/>
1052b877906bSopenharmony_ci    </enum>
1053b877906bSopenharmony_ci  </interface>
1054b877906bSopenharmony_ci
1055b877906bSopenharmony_ci  <interface name="wl_shell" version="1">
1056b877906bSopenharmony_ci    <description summary="create desktop-style surfaces">
1057b877906bSopenharmony_ci      This interface is implemented by servers that provide
1058b877906bSopenharmony_ci      desktop-style user interfaces.
1059b877906bSopenharmony_ci
1060b877906bSopenharmony_ci      It allows clients to associate a wl_shell_surface with
1061b877906bSopenharmony_ci      a basic surface.
1062b877906bSopenharmony_ci
1063b877906bSopenharmony_ci      Note! This protocol is deprecated and not intended for production use.
1064b877906bSopenharmony_ci      For desktop-style user interfaces, use xdg_shell. Compositors and clients
1065b877906bSopenharmony_ci      should not implement this interface.
1066b877906bSopenharmony_ci    </description>
1067b877906bSopenharmony_ci
1068b877906bSopenharmony_ci    <enum name="error">
1069b877906bSopenharmony_ci      <entry name="role" value="0" summary="given wl_surface has another role"/>
1070b877906bSopenharmony_ci    </enum>
1071b877906bSopenharmony_ci
1072b877906bSopenharmony_ci    <request name="get_shell_surface">
1073b877906bSopenharmony_ci      <description summary="create a shell surface from a surface">
1074b877906bSopenharmony_ci	Create a shell surface for an existing surface. This gives
1075b877906bSopenharmony_ci	the wl_surface the role of a shell surface. If the wl_surface
1076b877906bSopenharmony_ci	already has another role, it raises a protocol error.
1077b877906bSopenharmony_ci
1078b877906bSopenharmony_ci	Only one shell surface can be associated with a given surface.
1079b877906bSopenharmony_ci      </description>
1080b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_shell_surface" summary="shell surface to create"/>
1081b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" summary="surface to be given the shell surface role"/>
1082b877906bSopenharmony_ci    </request>
1083b877906bSopenharmony_ci  </interface>
1084b877906bSopenharmony_ci
1085b877906bSopenharmony_ci  <interface name="wl_shell_surface" version="1">
1086b877906bSopenharmony_ci    <description summary="desktop-style metadata interface">
1087b877906bSopenharmony_ci      An interface that may be implemented by a wl_surface, for
1088b877906bSopenharmony_ci      implementations that provide a desktop-style user interface.
1089b877906bSopenharmony_ci
1090b877906bSopenharmony_ci      It provides requests to treat surfaces like toplevel, fullscreen
1091b877906bSopenharmony_ci      or popup windows, move, resize or maximize them, associate
1092b877906bSopenharmony_ci      metadata like title and class, etc.
1093b877906bSopenharmony_ci
1094b877906bSopenharmony_ci      On the server side the object is automatically destroyed when
1095b877906bSopenharmony_ci      the related wl_surface is destroyed. On the client side,
1096b877906bSopenharmony_ci      wl_shell_surface_destroy() must be called before destroying
1097b877906bSopenharmony_ci      the wl_surface object.
1098b877906bSopenharmony_ci    </description>
1099b877906bSopenharmony_ci
1100b877906bSopenharmony_ci    <request name="pong">
1101b877906bSopenharmony_ci      <description summary="respond to a ping event">
1102b877906bSopenharmony_ci	A client must respond to a ping event with a pong request or
1103b877906bSopenharmony_ci	the client may be deemed unresponsive.
1104b877906bSopenharmony_ci      </description>
1105b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the ping event"/>
1106b877906bSopenharmony_ci    </request>
1107b877906bSopenharmony_ci
1108b877906bSopenharmony_ci    <request name="move">
1109b877906bSopenharmony_ci      <description summary="start an interactive move">
1110b877906bSopenharmony_ci	Start a pointer-driven move of the surface.
1111b877906bSopenharmony_ci
1112b877906bSopenharmony_ci	This request must be used in response to a button press event.
1113b877906bSopenharmony_ci	The server may ignore move requests depending on the state of
1114b877906bSopenharmony_ci	the surface (e.g. fullscreen or maximized).
1115b877906bSopenharmony_ci      </description>
1116b877906bSopenharmony_ci      <arg name="seat" type="object" interface="wl_seat" summary="seat whose pointer is used"/>
1117b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the implicit grab on the pointer"/>
1118b877906bSopenharmony_ci    </request>
1119b877906bSopenharmony_ci
1120b877906bSopenharmony_ci    <enum name="resize" bitfield="true">
1121b877906bSopenharmony_ci      <description summary="edge values for resizing">
1122b877906bSopenharmony_ci	These values are used to indicate which edge of a surface
1123b877906bSopenharmony_ci	is being dragged in a resize operation. The server may
1124b877906bSopenharmony_ci	use this information to adapt its behavior, e.g. choose
1125b877906bSopenharmony_ci	an appropriate cursor image.
1126b877906bSopenharmony_ci      </description>
1127b877906bSopenharmony_ci      <entry name="none" value="0" summary="no edge"/>
1128b877906bSopenharmony_ci      <entry name="top" value="1" summary="top edge"/>
1129b877906bSopenharmony_ci      <entry name="bottom" value="2" summary="bottom edge"/>
1130b877906bSopenharmony_ci      <entry name="left" value="4" summary="left edge"/>
1131b877906bSopenharmony_ci      <entry name="top_left" value="5" summary="top and left edges"/>
1132b877906bSopenharmony_ci      <entry name="bottom_left" value="6" summary="bottom and left edges"/>
1133b877906bSopenharmony_ci      <entry name="right" value="8" summary="right edge"/>
1134b877906bSopenharmony_ci      <entry name="top_right" value="9" summary="top and right edges"/>
1135b877906bSopenharmony_ci      <entry name="bottom_right" value="10" summary="bottom and right edges"/>
1136b877906bSopenharmony_ci    </enum>
1137b877906bSopenharmony_ci
1138b877906bSopenharmony_ci    <request name="resize">
1139b877906bSopenharmony_ci      <description summary="start an interactive resize">
1140b877906bSopenharmony_ci	Start a pointer-driven resizing of the surface.
1141b877906bSopenharmony_ci
1142b877906bSopenharmony_ci	This request must be used in response to a button press event.
1143b877906bSopenharmony_ci	The server may ignore resize requests depending on the state of
1144b877906bSopenharmony_ci	the surface (e.g. fullscreen or maximized).
1145b877906bSopenharmony_ci      </description>
1146b877906bSopenharmony_ci      <arg name="seat" type="object" interface="wl_seat" summary="seat whose pointer is used"/>
1147b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the implicit grab on the pointer"/>
1148b877906bSopenharmony_ci      <arg name="edges" type="uint" enum="resize" summary="which edge or corner is being dragged"/>
1149b877906bSopenharmony_ci    </request>
1150b877906bSopenharmony_ci
1151b877906bSopenharmony_ci    <request name="set_toplevel">
1152b877906bSopenharmony_ci      <description summary="make the surface a toplevel surface">
1153b877906bSopenharmony_ci	Map the surface as a toplevel surface.
1154b877906bSopenharmony_ci
1155b877906bSopenharmony_ci	A toplevel surface is not fullscreen, maximized or transient.
1156b877906bSopenharmony_ci      </description>
1157b877906bSopenharmony_ci    </request>
1158b877906bSopenharmony_ci
1159b877906bSopenharmony_ci    <enum name="transient" bitfield="true">
1160b877906bSopenharmony_ci      <description summary="details of transient behaviour">
1161b877906bSopenharmony_ci	These flags specify details of the expected behaviour
1162b877906bSopenharmony_ci	of transient surfaces. Used in the set_transient request.
1163b877906bSopenharmony_ci      </description>
1164b877906bSopenharmony_ci      <entry name="inactive" value="0x1" summary="do not set keyboard focus"/>
1165b877906bSopenharmony_ci    </enum>
1166b877906bSopenharmony_ci
1167b877906bSopenharmony_ci    <request name="set_transient">
1168b877906bSopenharmony_ci      <description summary="make the surface a transient surface">
1169b877906bSopenharmony_ci	Map the surface relative to an existing surface.
1170b877906bSopenharmony_ci
1171b877906bSopenharmony_ci	The x and y arguments specify the location of the upper left
1172b877906bSopenharmony_ci	corner of the surface relative to the upper left corner of the
1173b877906bSopenharmony_ci	parent surface, in surface-local coordinates.
1174b877906bSopenharmony_ci
1175b877906bSopenharmony_ci	The flags argument controls details of the transient behaviour.
1176b877906bSopenharmony_ci      </description>
1177b877906bSopenharmony_ci      <arg name="parent" type="object" interface="wl_surface" summary="parent surface"/>
1178b877906bSopenharmony_ci      <arg name="x" type="int" summary="surface-local x coordinate"/>
1179b877906bSopenharmony_ci      <arg name="y" type="int" summary="surface-local y coordinate"/>
1180b877906bSopenharmony_ci      <arg name="flags" type="uint" enum="transient" summary="transient surface behavior"/>
1181b877906bSopenharmony_ci    </request>
1182b877906bSopenharmony_ci
1183b877906bSopenharmony_ci    <enum name="fullscreen_method">
1184b877906bSopenharmony_ci      <description summary="different method to set the surface fullscreen">
1185b877906bSopenharmony_ci	Hints to indicate to the compositor how to deal with a conflict
1186b877906bSopenharmony_ci	between the dimensions of the surface and the dimensions of the
1187b877906bSopenharmony_ci	output. The compositor is free to ignore this parameter.
1188b877906bSopenharmony_ci      </description>
1189b877906bSopenharmony_ci      <entry name="default" value="0" summary="no preference, apply default policy"/>
1190b877906bSopenharmony_ci      <entry name="scale" value="1" summary="scale, preserve the surface's aspect ratio and center on output"/>
1191b877906bSopenharmony_ci      <entry name="driver" value="2" summary="switch output mode to the smallest mode that can fit the surface, add black borders to compensate size mismatch"/>
1192b877906bSopenharmony_ci      <entry name="fill" value="3" summary="no upscaling, center on output and add black borders to compensate size mismatch"/>
1193b877906bSopenharmony_ci    </enum>
1194b877906bSopenharmony_ci
1195b877906bSopenharmony_ci    <request name="set_fullscreen">
1196b877906bSopenharmony_ci      <description summary="make the surface a fullscreen surface">
1197b877906bSopenharmony_ci	Map the surface as a fullscreen surface.
1198b877906bSopenharmony_ci
1199b877906bSopenharmony_ci	If an output parameter is given then the surface will be made
1200b877906bSopenharmony_ci	fullscreen on that output. If the client does not specify the
1201b877906bSopenharmony_ci	output then the compositor will apply its policy - usually
1202b877906bSopenharmony_ci	choosing the output on which the surface has the biggest surface
1203b877906bSopenharmony_ci	area.
1204b877906bSopenharmony_ci
1205b877906bSopenharmony_ci	The client may specify a method to resolve a size conflict
1206b877906bSopenharmony_ci	between the output size and the surface size - this is provided
1207b877906bSopenharmony_ci	through the method parameter.
1208b877906bSopenharmony_ci
1209b877906bSopenharmony_ci	The framerate parameter is used only when the method is set
1210b877906bSopenharmony_ci	to "driver", to indicate the preferred framerate. A value of 0
1211b877906bSopenharmony_ci	indicates that the client does not care about framerate.  The
1212b877906bSopenharmony_ci	framerate is specified in mHz, that is framerate of 60000 is 60Hz.
1213b877906bSopenharmony_ci
1214b877906bSopenharmony_ci	A method of "scale" or "driver" implies a scaling operation of
1215b877906bSopenharmony_ci	the surface, either via a direct scaling operation or a change of
1216b877906bSopenharmony_ci	the output mode. This will override any kind of output scaling, so
1217b877906bSopenharmony_ci	that mapping a surface with a buffer size equal to the mode can
1218b877906bSopenharmony_ci	fill the screen independent of buffer_scale.
1219b877906bSopenharmony_ci
1220b877906bSopenharmony_ci	A method of "fill" means we don't scale up the buffer, however
1221b877906bSopenharmony_ci	any output scale is applied. This means that you may run into
1222b877906bSopenharmony_ci	an edge case where the application maps a buffer with the same
1223b877906bSopenharmony_ci	size of the output mode but buffer_scale 1 (thus making a
1224b877906bSopenharmony_ci	surface larger than the output). In this case it is allowed to
1225b877906bSopenharmony_ci	downscale the results to fit the screen.
1226b877906bSopenharmony_ci
1227b877906bSopenharmony_ci	The compositor must reply to this request with a configure event
1228b877906bSopenharmony_ci	with the dimensions for the output on which the surface will
1229b877906bSopenharmony_ci	be made fullscreen.
1230b877906bSopenharmony_ci      </description>
1231b877906bSopenharmony_ci      <arg name="method" type="uint" enum="fullscreen_method" summary="method for resolving size conflict"/>
1232b877906bSopenharmony_ci      <arg name="framerate" type="uint" summary="framerate in mHz"/>
1233b877906bSopenharmony_ci      <arg name="output" type="object" interface="wl_output" allow-null="true"
1234b877906bSopenharmony_ci	   summary="output on which the surface is to be fullscreen"/>
1235b877906bSopenharmony_ci    </request>
1236b877906bSopenharmony_ci
1237b877906bSopenharmony_ci    <request name="set_popup">
1238b877906bSopenharmony_ci      <description summary="make the surface a popup surface">
1239b877906bSopenharmony_ci	Map the surface as a popup.
1240b877906bSopenharmony_ci
1241b877906bSopenharmony_ci	A popup surface is a transient surface with an added pointer
1242b877906bSopenharmony_ci	grab.
1243b877906bSopenharmony_ci
1244b877906bSopenharmony_ci	An existing implicit grab will be changed to owner-events mode,
1245b877906bSopenharmony_ci	and the popup grab will continue after the implicit grab ends
1246b877906bSopenharmony_ci	(i.e. releasing the mouse button does not cause the popup to
1247b877906bSopenharmony_ci	be unmapped).
1248b877906bSopenharmony_ci
1249b877906bSopenharmony_ci	The popup grab continues until the window is destroyed or a
1250b877906bSopenharmony_ci	mouse button is pressed in any other client's window. A click
1251b877906bSopenharmony_ci	in any of the client's surfaces is reported as normal, however,
1252b877906bSopenharmony_ci	clicks in other clients' surfaces will be discarded and trigger
1253b877906bSopenharmony_ci	the callback.
1254b877906bSopenharmony_ci
1255b877906bSopenharmony_ci	The x and y arguments specify the location of the upper left
1256b877906bSopenharmony_ci	corner of the surface relative to the upper left corner of the
1257b877906bSopenharmony_ci	parent surface, in surface-local coordinates.
1258b877906bSopenharmony_ci      </description>
1259b877906bSopenharmony_ci      <arg name="seat" type="object" interface="wl_seat" summary="seat whose pointer is used"/>
1260b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the implicit grab on the pointer"/>
1261b877906bSopenharmony_ci      <arg name="parent" type="object" interface="wl_surface" summary="parent surface"/>
1262b877906bSopenharmony_ci      <arg name="x" type="int" summary="surface-local x coordinate"/>
1263b877906bSopenharmony_ci      <arg name="y" type="int" summary="surface-local y coordinate"/>
1264b877906bSopenharmony_ci      <arg name="flags" type="uint" enum="transient" summary="transient surface behavior"/>
1265b877906bSopenharmony_ci    </request>
1266b877906bSopenharmony_ci
1267b877906bSopenharmony_ci    <request name="set_maximized">
1268b877906bSopenharmony_ci      <description summary="make the surface a maximized surface">
1269b877906bSopenharmony_ci	Map the surface as a maximized surface.
1270b877906bSopenharmony_ci
1271b877906bSopenharmony_ci	If an output parameter is given then the surface will be
1272b877906bSopenharmony_ci	maximized on that output. If the client does not specify the
1273b877906bSopenharmony_ci	output then the compositor will apply its policy - usually
1274b877906bSopenharmony_ci	choosing the output on which the surface has the biggest surface
1275b877906bSopenharmony_ci	area.
1276b877906bSopenharmony_ci
1277b877906bSopenharmony_ci	The compositor will reply with a configure event telling
1278b877906bSopenharmony_ci	the expected new surface size. The operation is completed
1279b877906bSopenharmony_ci	on the next buffer attach to this surface.
1280b877906bSopenharmony_ci
1281b877906bSopenharmony_ci	A maximized surface typically fills the entire output it is
1282b877906bSopenharmony_ci	bound to, except for desktop elements such as panels. This is
1283b877906bSopenharmony_ci	the main difference between a maximized shell surface and a
1284b877906bSopenharmony_ci	fullscreen shell surface.
1285b877906bSopenharmony_ci
1286b877906bSopenharmony_ci	The details depend on the compositor implementation.
1287b877906bSopenharmony_ci      </description>
1288b877906bSopenharmony_ci      <arg name="output" type="object" interface="wl_output" allow-null="true"
1289b877906bSopenharmony_ci	   summary="output on which the surface is to be maximized"/>
1290b877906bSopenharmony_ci    </request>
1291b877906bSopenharmony_ci
1292b877906bSopenharmony_ci    <request name="set_title">
1293b877906bSopenharmony_ci      <description summary="set surface title">
1294b877906bSopenharmony_ci	Set a short title for the surface.
1295b877906bSopenharmony_ci
1296b877906bSopenharmony_ci	This string may be used to identify the surface in a task bar,
1297b877906bSopenharmony_ci	window list, or other user interface elements provided by the
1298b877906bSopenharmony_ci	compositor.
1299b877906bSopenharmony_ci
1300b877906bSopenharmony_ci	The string must be encoded in UTF-8.
1301b877906bSopenharmony_ci      </description>
1302b877906bSopenharmony_ci      <arg name="title" type="string" summary="surface title"/>
1303b877906bSopenharmony_ci    </request>
1304b877906bSopenharmony_ci
1305b877906bSopenharmony_ci    <request name="set_class">
1306b877906bSopenharmony_ci      <description summary="set surface class">
1307b877906bSopenharmony_ci	Set a class for the surface.
1308b877906bSopenharmony_ci
1309b877906bSopenharmony_ci	The surface class identifies the general class of applications
1310b877906bSopenharmony_ci	to which the surface belongs. A common convention is to use the
1311b877906bSopenharmony_ci	file name (or the full path if it is a non-standard location) of
1312b877906bSopenharmony_ci	the application's .desktop file as the class.
1313b877906bSopenharmony_ci      </description>
1314b877906bSopenharmony_ci      <arg name="class_" type="string" summary="surface class"/>
1315b877906bSopenharmony_ci    </request>
1316b877906bSopenharmony_ci
1317b877906bSopenharmony_ci    <event name="ping">
1318b877906bSopenharmony_ci      <description summary="ping client">
1319b877906bSopenharmony_ci	Ping a client to check if it is receiving events and sending
1320b877906bSopenharmony_ci	requests. A client is expected to reply with a pong request.
1321b877906bSopenharmony_ci      </description>
1322b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the ping"/>
1323b877906bSopenharmony_ci    </event>
1324b877906bSopenharmony_ci
1325b877906bSopenharmony_ci    <event name="configure">
1326b877906bSopenharmony_ci      <description summary="suggest resize">
1327b877906bSopenharmony_ci	The configure event asks the client to resize its surface.
1328b877906bSopenharmony_ci
1329b877906bSopenharmony_ci	The size is a hint, in the sense that the client is free to
1330b877906bSopenharmony_ci	ignore it if it doesn't resize, pick a smaller size (to
1331b877906bSopenharmony_ci	satisfy aspect ratio or resize in steps of NxM pixels).
1332b877906bSopenharmony_ci
1333b877906bSopenharmony_ci	The edges parameter provides a hint about how the surface
1334b877906bSopenharmony_ci	was resized. The client may use this information to decide
1335b877906bSopenharmony_ci	how to adjust its content to the new size (e.g. a scrolling
1336b877906bSopenharmony_ci	area might adjust its content position to leave the viewable
1337b877906bSopenharmony_ci	content unmoved).
1338b877906bSopenharmony_ci
1339b877906bSopenharmony_ci	The client is free to dismiss all but the last configure
1340b877906bSopenharmony_ci	event it received.
1341b877906bSopenharmony_ci
1342b877906bSopenharmony_ci	The width and height arguments specify the size of the window
1343b877906bSopenharmony_ci	in surface-local coordinates.
1344b877906bSopenharmony_ci      </description>
1345b877906bSopenharmony_ci      <arg name="edges" type="uint" enum="resize" summary="how the surface was resized"/>
1346b877906bSopenharmony_ci      <arg name="width" type="int" summary="new width of the surface"/>
1347b877906bSopenharmony_ci      <arg name="height" type="int" summary="new height of the surface"/>
1348b877906bSopenharmony_ci    </event>
1349b877906bSopenharmony_ci
1350b877906bSopenharmony_ci    <event name="popup_done">
1351b877906bSopenharmony_ci      <description summary="popup interaction is done">
1352b877906bSopenharmony_ci	The popup_done event is sent out when a popup grab is broken,
1353b877906bSopenharmony_ci	that is, when the user clicks a surface that doesn't belong
1354b877906bSopenharmony_ci	to the client owning the popup surface.
1355b877906bSopenharmony_ci      </description>
1356b877906bSopenharmony_ci    </event>
1357b877906bSopenharmony_ci  </interface>
1358b877906bSopenharmony_ci
1359b877906bSopenharmony_ci  <interface name="wl_surface" version="6">
1360b877906bSopenharmony_ci    <description summary="an onscreen surface">
1361b877906bSopenharmony_ci      A surface is a rectangular area that may be displayed on zero
1362b877906bSopenharmony_ci      or more outputs, and shown any number of times at the compositor's
1363b877906bSopenharmony_ci      discretion. They can present wl_buffers, receive user input, and
1364b877906bSopenharmony_ci      define a local coordinate system.
1365b877906bSopenharmony_ci
1366b877906bSopenharmony_ci      The size of a surface (and relative positions on it) is described
1367b877906bSopenharmony_ci      in surface-local coordinates, which may differ from the buffer
1368b877906bSopenharmony_ci      coordinates of the pixel content, in case a buffer_transform
1369b877906bSopenharmony_ci      or a buffer_scale is used.
1370b877906bSopenharmony_ci
1371b877906bSopenharmony_ci      A surface without a "role" is fairly useless: a compositor does
1372b877906bSopenharmony_ci      not know where, when or how to present it. The role is the
1373b877906bSopenharmony_ci      purpose of a wl_surface. Examples of roles are a cursor for a
1374b877906bSopenharmony_ci      pointer (as set by wl_pointer.set_cursor), a drag icon
1375b877906bSopenharmony_ci      (wl_data_device.start_drag), a sub-surface
1376b877906bSopenharmony_ci      (wl_subcompositor.get_subsurface), and a window as defined by a
1377b877906bSopenharmony_ci      shell protocol (e.g. wl_shell.get_shell_surface).
1378b877906bSopenharmony_ci
1379b877906bSopenharmony_ci      A surface can have only one role at a time. Initially a
1380b877906bSopenharmony_ci      wl_surface does not have a role. Once a wl_surface is given a
1381b877906bSopenharmony_ci      role, it is set permanently for the whole lifetime of the
1382b877906bSopenharmony_ci      wl_surface object. Giving the current role again is allowed,
1383b877906bSopenharmony_ci      unless explicitly forbidden by the relevant interface
1384b877906bSopenharmony_ci      specification.
1385b877906bSopenharmony_ci
1386b877906bSopenharmony_ci      Surface roles are given by requests in other interfaces such as
1387b877906bSopenharmony_ci      wl_pointer.set_cursor. The request should explicitly mention
1388b877906bSopenharmony_ci      that this request gives a role to a wl_surface. Often, this
1389b877906bSopenharmony_ci      request also creates a new protocol object that represents the
1390b877906bSopenharmony_ci      role and adds additional functionality to wl_surface. When a
1391b877906bSopenharmony_ci      client wants to destroy a wl_surface, they must destroy this role
1392b877906bSopenharmony_ci      object before the wl_surface, otherwise a defunct_role_object error is
1393b877906bSopenharmony_ci      sent.
1394b877906bSopenharmony_ci
1395b877906bSopenharmony_ci      Destroying the role object does not remove the role from the
1396b877906bSopenharmony_ci      wl_surface, but it may stop the wl_surface from "playing the role".
1397b877906bSopenharmony_ci      For instance, if a wl_subsurface object is destroyed, the wl_surface
1398b877906bSopenharmony_ci      it was created for will be unmapped and forget its position and
1399b877906bSopenharmony_ci      z-order. It is allowed to create a wl_subsurface for the same
1400b877906bSopenharmony_ci      wl_surface again, but it is not allowed to use the wl_surface as
1401b877906bSopenharmony_ci      a cursor (cursor is a different role than sub-surface, and role
1402b877906bSopenharmony_ci      switching is not allowed).
1403b877906bSopenharmony_ci    </description>
1404b877906bSopenharmony_ci
1405b877906bSopenharmony_ci    <enum name="error">
1406b877906bSopenharmony_ci      <description summary="wl_surface error values">
1407b877906bSopenharmony_ci	These errors can be emitted in response to wl_surface requests.
1408b877906bSopenharmony_ci      </description>
1409b877906bSopenharmony_ci      <entry name="invalid_scale" value="0" summary="buffer scale value is invalid"/>
1410b877906bSopenharmony_ci      <entry name="invalid_transform" value="1" summary="buffer transform value is invalid"/>
1411b877906bSopenharmony_ci      <entry name="invalid_size" value="2" summary="buffer size is invalid"/>
1412b877906bSopenharmony_ci      <entry name="invalid_offset" value="3" summary="buffer offset is invalid"/>
1413b877906bSopenharmony_ci      <entry name="defunct_role_object" value="4"
1414b877906bSopenharmony_ci             summary="surface was destroyed before its role object"/>
1415b877906bSopenharmony_ci    </enum>
1416b877906bSopenharmony_ci
1417b877906bSopenharmony_ci    <request name="destroy" type="destructor">
1418b877906bSopenharmony_ci      <description summary="delete surface">
1419b877906bSopenharmony_ci	Deletes the surface and invalidates its object ID.
1420b877906bSopenharmony_ci      </description>
1421b877906bSopenharmony_ci    </request>
1422b877906bSopenharmony_ci
1423b877906bSopenharmony_ci    <request name="attach">
1424b877906bSopenharmony_ci      <description summary="set the surface contents">
1425b877906bSopenharmony_ci	Set a buffer as the content of this surface.
1426b877906bSopenharmony_ci
1427b877906bSopenharmony_ci	The new size of the surface is calculated based on the buffer
1428b877906bSopenharmony_ci	size transformed by the inverse buffer_transform and the
1429b877906bSopenharmony_ci	inverse buffer_scale. This means that at commit time the supplied
1430b877906bSopenharmony_ci	buffer size must be an integer multiple of the buffer_scale. If
1431b877906bSopenharmony_ci	that's not the case, an invalid_size error is sent.
1432b877906bSopenharmony_ci
1433b877906bSopenharmony_ci	The x and y arguments specify the location of the new pending
1434b877906bSopenharmony_ci	buffer's upper left corner, relative to the current buffer's upper
1435b877906bSopenharmony_ci	left corner, in surface-local coordinates. In other words, the
1436b877906bSopenharmony_ci	x and y, combined with the new surface size define in which
1437b877906bSopenharmony_ci	directions the surface's size changes. Setting anything other than 0
1438b877906bSopenharmony_ci	as x and y arguments is discouraged, and should instead be replaced
1439b877906bSopenharmony_ci	with using the separate wl_surface.offset request.
1440b877906bSopenharmony_ci
1441b877906bSopenharmony_ci	When the bound wl_surface version is 5 or higher, passing any
1442b877906bSopenharmony_ci	non-zero x or y is a protocol violation, and will result in an
1443b877906bSopenharmony_ci        'invalid_offset' error being raised. The x and y arguments are ignored
1444b877906bSopenharmony_ci        and do not change the pending state. To achieve equivalent semantics,
1445b877906bSopenharmony_ci        use wl_surface.offset.
1446b877906bSopenharmony_ci
1447b877906bSopenharmony_ci	Surface contents are double-buffered state, see wl_surface.commit.
1448b877906bSopenharmony_ci
1449b877906bSopenharmony_ci	The initial surface contents are void; there is no content.
1450b877906bSopenharmony_ci	wl_surface.attach assigns the given wl_buffer as the pending
1451b877906bSopenharmony_ci	wl_buffer. wl_surface.commit makes the pending wl_buffer the new
1452b877906bSopenharmony_ci	surface contents, and the size of the surface becomes the size
1453b877906bSopenharmony_ci	calculated from the wl_buffer, as described above. After commit,
1454b877906bSopenharmony_ci	there is no pending buffer until the next attach.
1455b877906bSopenharmony_ci
1456b877906bSopenharmony_ci	Committing a pending wl_buffer allows the compositor to read the
1457b877906bSopenharmony_ci	pixels in the wl_buffer. The compositor may access the pixels at
1458b877906bSopenharmony_ci	any time after the wl_surface.commit request. When the compositor
1459b877906bSopenharmony_ci	will not access the pixels anymore, it will send the
1460b877906bSopenharmony_ci	wl_buffer.release event. Only after receiving wl_buffer.release,
1461b877906bSopenharmony_ci	the client may reuse the wl_buffer. A wl_buffer that has been
1462b877906bSopenharmony_ci	attached and then replaced by another attach instead of committed
1463b877906bSopenharmony_ci	will not receive a release event, and is not used by the
1464b877906bSopenharmony_ci	compositor.
1465b877906bSopenharmony_ci
1466b877906bSopenharmony_ci	If a pending wl_buffer has been committed to more than one wl_surface,
1467b877906bSopenharmony_ci	the delivery of wl_buffer.release events becomes undefined. A well
1468b877906bSopenharmony_ci	behaved client should not rely on wl_buffer.release events in this
1469b877906bSopenharmony_ci	case. Alternatively, a client could create multiple wl_buffer objects
1470b877906bSopenharmony_ci	from the same backing storage or use wp_linux_buffer_release.
1471b877906bSopenharmony_ci
1472b877906bSopenharmony_ci	Destroying the wl_buffer after wl_buffer.release does not change
1473b877906bSopenharmony_ci	the surface contents. Destroying the wl_buffer before wl_buffer.release
1474b877906bSopenharmony_ci	is allowed as long as the underlying buffer storage isn't re-used (this
1475b877906bSopenharmony_ci	can happen e.g. on client process termination). However, if the client
1476b877906bSopenharmony_ci	destroys the wl_buffer before receiving the wl_buffer.release event and
1477b877906bSopenharmony_ci	mutates the underlying buffer storage, the surface contents become
1478b877906bSopenharmony_ci	undefined immediately.
1479b877906bSopenharmony_ci
1480b877906bSopenharmony_ci	If wl_surface.attach is sent with a NULL wl_buffer, the
1481b877906bSopenharmony_ci	following wl_surface.commit will remove the surface content.
1482b877906bSopenharmony_ci      </description>
1483b877906bSopenharmony_ci      <arg name="buffer" type="object" interface="wl_buffer" allow-null="true"
1484b877906bSopenharmony_ci	   summary="buffer of surface contents"/>
1485b877906bSopenharmony_ci      <arg name="x" type="int" summary="surface-local x coordinate"/>
1486b877906bSopenharmony_ci      <arg name="y" type="int" summary="surface-local y coordinate"/>
1487b877906bSopenharmony_ci    </request>
1488b877906bSopenharmony_ci
1489b877906bSopenharmony_ci    <request name="damage">
1490b877906bSopenharmony_ci      <description summary="mark part of the surface damaged">
1491b877906bSopenharmony_ci	This request is used to describe the regions where the pending
1492b877906bSopenharmony_ci	buffer is different from the current surface contents, and where
1493b877906bSopenharmony_ci	the surface therefore needs to be repainted. The compositor
1494b877906bSopenharmony_ci	ignores the parts of the damage that fall outside of the surface.
1495b877906bSopenharmony_ci
1496b877906bSopenharmony_ci	Damage is double-buffered state, see wl_surface.commit.
1497b877906bSopenharmony_ci
1498b877906bSopenharmony_ci	The damage rectangle is specified in surface-local coordinates,
1499b877906bSopenharmony_ci	where x and y specify the upper left corner of the damage rectangle.
1500b877906bSopenharmony_ci
1501b877906bSopenharmony_ci	The initial value for pending damage is empty: no damage.
1502b877906bSopenharmony_ci	wl_surface.damage adds pending damage: the new pending damage
1503b877906bSopenharmony_ci	is the union of old pending damage and the given rectangle.
1504b877906bSopenharmony_ci
1505b877906bSopenharmony_ci	wl_surface.commit assigns pending damage as the current damage,
1506b877906bSopenharmony_ci	and clears pending damage. The server will clear the current
1507b877906bSopenharmony_ci	damage as it repaints the surface.
1508b877906bSopenharmony_ci
1509b877906bSopenharmony_ci	Note! New clients should not use this request. Instead damage can be
1510b877906bSopenharmony_ci	posted with wl_surface.damage_buffer which uses buffer coordinates
1511b877906bSopenharmony_ci	instead of surface coordinates.
1512b877906bSopenharmony_ci      </description>
1513b877906bSopenharmony_ci      <arg name="x" type="int" summary="surface-local x coordinate"/>
1514b877906bSopenharmony_ci      <arg name="y" type="int" summary="surface-local y coordinate"/>
1515b877906bSopenharmony_ci      <arg name="width" type="int" summary="width of damage rectangle"/>
1516b877906bSopenharmony_ci      <arg name="height" type="int" summary="height of damage rectangle"/>
1517b877906bSopenharmony_ci    </request>
1518b877906bSopenharmony_ci
1519b877906bSopenharmony_ci    <request name="frame">
1520b877906bSopenharmony_ci      <description summary="request a frame throttling hint">
1521b877906bSopenharmony_ci	Request a notification when it is a good time to start drawing a new
1522b877906bSopenharmony_ci	frame, by creating a frame callback. This is useful for throttling
1523b877906bSopenharmony_ci	redrawing operations, and driving animations.
1524b877906bSopenharmony_ci
1525b877906bSopenharmony_ci	When a client is animating on a wl_surface, it can use the 'frame'
1526b877906bSopenharmony_ci	request to get notified when it is a good time to draw and commit the
1527b877906bSopenharmony_ci	next frame of animation. If the client commits an update earlier than
1528b877906bSopenharmony_ci	that, it is likely that some updates will not make it to the display,
1529b877906bSopenharmony_ci	and the client is wasting resources by drawing too often.
1530b877906bSopenharmony_ci
1531b877906bSopenharmony_ci	The frame request will take effect on the next wl_surface.commit.
1532b877906bSopenharmony_ci	The notification will only be posted for one frame unless
1533b877906bSopenharmony_ci	requested again. For a wl_surface, the notifications are posted in
1534b877906bSopenharmony_ci	the order the frame requests were committed.
1535b877906bSopenharmony_ci
1536b877906bSopenharmony_ci	The server must send the notifications so that a client
1537b877906bSopenharmony_ci	will not send excessive updates, while still allowing
1538b877906bSopenharmony_ci	the highest possible update rate for clients that wait for the reply
1539b877906bSopenharmony_ci	before drawing again. The server should give some time for the client
1540b877906bSopenharmony_ci	to draw and commit after sending the frame callback events to let it
1541b877906bSopenharmony_ci	hit the next output refresh.
1542b877906bSopenharmony_ci
1543b877906bSopenharmony_ci	A server should avoid signaling the frame callbacks if the
1544b877906bSopenharmony_ci	surface is not visible in any way, e.g. the surface is off-screen,
1545b877906bSopenharmony_ci	or completely obscured by other opaque surfaces.
1546b877906bSopenharmony_ci
1547b877906bSopenharmony_ci	The object returned by this request will be destroyed by the
1548b877906bSopenharmony_ci	compositor after the callback is fired and as such the client must not
1549b877906bSopenharmony_ci	attempt to use it after that point.
1550b877906bSopenharmony_ci
1551b877906bSopenharmony_ci	The callback_data passed in the callback is the current time, in
1552b877906bSopenharmony_ci	milliseconds, with an undefined base.
1553b877906bSopenharmony_ci      </description>
1554b877906bSopenharmony_ci      <arg name="callback" type="new_id" interface="wl_callback" summary="callback object for the frame request"/>
1555b877906bSopenharmony_ci    </request>
1556b877906bSopenharmony_ci
1557b877906bSopenharmony_ci    <request name="set_opaque_region">
1558b877906bSopenharmony_ci      <description summary="set opaque region">
1559b877906bSopenharmony_ci	This request sets the region of the surface that contains
1560b877906bSopenharmony_ci	opaque content.
1561b877906bSopenharmony_ci
1562b877906bSopenharmony_ci	The opaque region is an optimization hint for the compositor
1563b877906bSopenharmony_ci	that lets it optimize the redrawing of content behind opaque
1564b877906bSopenharmony_ci	regions.  Setting an opaque region is not required for correct
1565b877906bSopenharmony_ci	behaviour, but marking transparent content as opaque will result
1566b877906bSopenharmony_ci	in repaint artifacts.
1567b877906bSopenharmony_ci
1568b877906bSopenharmony_ci	The opaque region is specified in surface-local coordinates.
1569b877906bSopenharmony_ci
1570b877906bSopenharmony_ci	The compositor ignores the parts of the opaque region that fall
1571b877906bSopenharmony_ci	outside of the surface.
1572b877906bSopenharmony_ci
1573b877906bSopenharmony_ci	Opaque region is double-buffered state, see wl_surface.commit.
1574b877906bSopenharmony_ci
1575b877906bSopenharmony_ci	wl_surface.set_opaque_region changes the pending opaque region.
1576b877906bSopenharmony_ci	wl_surface.commit copies the pending region to the current region.
1577b877906bSopenharmony_ci	Otherwise, the pending and current regions are never changed.
1578b877906bSopenharmony_ci
1579b877906bSopenharmony_ci	The initial value for an opaque region is empty. Setting the pending
1580b877906bSopenharmony_ci	opaque region has copy semantics, and the wl_region object can be
1581b877906bSopenharmony_ci	destroyed immediately. A NULL wl_region causes the pending opaque
1582b877906bSopenharmony_ci	region to be set to empty.
1583b877906bSopenharmony_ci      </description>
1584b877906bSopenharmony_ci      <arg name="region" type="object" interface="wl_region" allow-null="true"
1585b877906bSopenharmony_ci	   summary="opaque region of the surface"/>
1586b877906bSopenharmony_ci    </request>
1587b877906bSopenharmony_ci
1588b877906bSopenharmony_ci    <request name="set_input_region">
1589b877906bSopenharmony_ci      <description summary="set input region">
1590b877906bSopenharmony_ci	This request sets the region of the surface that can receive
1591b877906bSopenharmony_ci	pointer and touch events.
1592b877906bSopenharmony_ci
1593b877906bSopenharmony_ci	Input events happening outside of this region will try the next
1594b877906bSopenharmony_ci	surface in the server surface stack. The compositor ignores the
1595b877906bSopenharmony_ci	parts of the input region that fall outside of the surface.
1596b877906bSopenharmony_ci
1597b877906bSopenharmony_ci	The input region is specified in surface-local coordinates.
1598b877906bSopenharmony_ci
1599b877906bSopenharmony_ci	Input region is double-buffered state, see wl_surface.commit.
1600b877906bSopenharmony_ci
1601b877906bSopenharmony_ci	wl_surface.set_input_region changes the pending input region.
1602b877906bSopenharmony_ci	wl_surface.commit copies the pending region to the current region.
1603b877906bSopenharmony_ci	Otherwise the pending and current regions are never changed,
1604b877906bSopenharmony_ci	except cursor and icon surfaces are special cases, see
1605b877906bSopenharmony_ci	wl_pointer.set_cursor and wl_data_device.start_drag.
1606b877906bSopenharmony_ci
1607b877906bSopenharmony_ci	The initial value for an input region is infinite. That means the
1608b877906bSopenharmony_ci	whole surface will accept input. Setting the pending input region
1609b877906bSopenharmony_ci	has copy semantics, and the wl_region object can be destroyed
1610b877906bSopenharmony_ci	immediately. A NULL wl_region causes the input region to be set
1611b877906bSopenharmony_ci	to infinite.
1612b877906bSopenharmony_ci      </description>
1613b877906bSopenharmony_ci      <arg name="region" type="object" interface="wl_region" allow-null="true"
1614b877906bSopenharmony_ci	   summary="input region of the surface"/>
1615b877906bSopenharmony_ci    </request>
1616b877906bSopenharmony_ci
1617b877906bSopenharmony_ci    <request name="commit">
1618b877906bSopenharmony_ci      <description summary="commit pending surface state">
1619b877906bSopenharmony_ci	Surface state (input, opaque, and damage regions, attached buffers,
1620b877906bSopenharmony_ci	etc.) is double-buffered. Protocol requests modify the pending state,
1621b877906bSopenharmony_ci	as opposed to the current state in use by the compositor. A commit
1622b877906bSopenharmony_ci	request atomically applies all pending state, replacing the current
1623b877906bSopenharmony_ci	state. After commit, the new pending state is as documented for each
1624b877906bSopenharmony_ci	related request.
1625b877906bSopenharmony_ci
1626b877906bSopenharmony_ci	On commit, a pending wl_buffer is applied first, and all other state
1627b877906bSopenharmony_ci	second. This means that all coordinates in double-buffered state are
1628b877906bSopenharmony_ci	relative to the new wl_buffer coming into use, except for
1629b877906bSopenharmony_ci	wl_surface.attach itself. If there is no pending wl_buffer, the
1630b877906bSopenharmony_ci	coordinates are relative to the current surface contents.
1631b877906bSopenharmony_ci
1632b877906bSopenharmony_ci	All requests that need a commit to become effective are documented
1633b877906bSopenharmony_ci	to affect double-buffered state.
1634b877906bSopenharmony_ci
1635b877906bSopenharmony_ci	Other interfaces may add further double-buffered surface state.
1636b877906bSopenharmony_ci      </description>
1637b877906bSopenharmony_ci    </request>
1638b877906bSopenharmony_ci
1639b877906bSopenharmony_ci    <event name="enter">
1640b877906bSopenharmony_ci      <description summary="surface enters an output">
1641b877906bSopenharmony_ci	This is emitted whenever a surface's creation, movement, or resizing
1642b877906bSopenharmony_ci	results in some part of it being within the scanout region of an
1643b877906bSopenharmony_ci	output.
1644b877906bSopenharmony_ci
1645b877906bSopenharmony_ci	Note that a surface may be overlapping with zero or more outputs.
1646b877906bSopenharmony_ci      </description>
1647b877906bSopenharmony_ci      <arg name="output" type="object" interface="wl_output" summary="output entered by the surface"/>
1648b877906bSopenharmony_ci    </event>
1649b877906bSopenharmony_ci
1650b877906bSopenharmony_ci    <event name="leave">
1651b877906bSopenharmony_ci      <description summary="surface leaves an output">
1652b877906bSopenharmony_ci	This is emitted whenever a surface's creation, movement, or resizing
1653b877906bSopenharmony_ci	results in it no longer having any part of it within the scanout region
1654b877906bSopenharmony_ci	of an output.
1655b877906bSopenharmony_ci
1656b877906bSopenharmony_ci	Clients should not use the number of outputs the surface is on for frame
1657b877906bSopenharmony_ci	throttling purposes. The surface might be hidden even if no leave event
1658b877906bSopenharmony_ci	has been sent, and the compositor might expect new surface content
1659b877906bSopenharmony_ci	updates even if no enter event has been sent. The frame event should be
1660b877906bSopenharmony_ci	used instead.
1661b877906bSopenharmony_ci      </description>
1662b877906bSopenharmony_ci      <arg name="output" type="object" interface="wl_output" summary="output left by the surface"/>
1663b877906bSopenharmony_ci    </event>
1664b877906bSopenharmony_ci
1665b877906bSopenharmony_ci    <!-- Version 2 additions -->
1666b877906bSopenharmony_ci
1667b877906bSopenharmony_ci    <request name="set_buffer_transform" since="2">
1668b877906bSopenharmony_ci      <description summary="sets the buffer transformation">
1669b877906bSopenharmony_ci	This request sets an optional transformation on how the compositor
1670b877906bSopenharmony_ci	interprets the contents of the buffer attached to the surface. The
1671b877906bSopenharmony_ci	accepted values for the transform parameter are the values for
1672b877906bSopenharmony_ci	wl_output.transform.
1673b877906bSopenharmony_ci
1674b877906bSopenharmony_ci	Buffer transform is double-buffered state, see wl_surface.commit.
1675b877906bSopenharmony_ci
1676b877906bSopenharmony_ci	A newly created surface has its buffer transformation set to normal.
1677b877906bSopenharmony_ci
1678b877906bSopenharmony_ci	wl_surface.set_buffer_transform changes the pending buffer
1679b877906bSopenharmony_ci	transformation. wl_surface.commit copies the pending buffer
1680b877906bSopenharmony_ci	transformation to the current one. Otherwise, the pending and current
1681b877906bSopenharmony_ci	values are never changed.
1682b877906bSopenharmony_ci
1683b877906bSopenharmony_ci	The purpose of this request is to allow clients to render content
1684b877906bSopenharmony_ci	according to the output transform, thus permitting the compositor to
1685b877906bSopenharmony_ci	use certain optimizations even if the display is rotated. Using
1686b877906bSopenharmony_ci	hardware overlays and scanning out a client buffer for fullscreen
1687b877906bSopenharmony_ci	surfaces are examples of such optimizations. Those optimizations are
1688b877906bSopenharmony_ci	highly dependent on the compositor implementation, so the use of this
1689b877906bSopenharmony_ci	request should be considered on a case-by-case basis.
1690b877906bSopenharmony_ci
1691b877906bSopenharmony_ci	Note that if the transform value includes 90 or 270 degree rotation,
1692b877906bSopenharmony_ci	the width of the buffer will become the surface height and the height
1693b877906bSopenharmony_ci	of the buffer will become the surface width.
1694b877906bSopenharmony_ci
1695b877906bSopenharmony_ci	If transform is not one of the values from the
1696b877906bSopenharmony_ci	wl_output.transform enum the invalid_transform protocol error
1697b877906bSopenharmony_ci	is raised.
1698b877906bSopenharmony_ci      </description>
1699b877906bSopenharmony_ci      <arg name="transform" type="int" enum="wl_output.transform"
1700b877906bSopenharmony_ci	   summary="transform for interpreting buffer contents"/>
1701b877906bSopenharmony_ci    </request>
1702b877906bSopenharmony_ci
1703b877906bSopenharmony_ci    <!-- Version 3 additions -->
1704b877906bSopenharmony_ci
1705b877906bSopenharmony_ci    <request name="set_buffer_scale" since="3">
1706b877906bSopenharmony_ci      <description summary="sets the buffer scaling factor">
1707b877906bSopenharmony_ci	This request sets an optional scaling factor on how the compositor
1708b877906bSopenharmony_ci	interprets the contents of the buffer attached to the window.
1709b877906bSopenharmony_ci
1710b877906bSopenharmony_ci	Buffer scale is double-buffered state, see wl_surface.commit.
1711b877906bSopenharmony_ci
1712b877906bSopenharmony_ci	A newly created surface has its buffer scale set to 1.
1713b877906bSopenharmony_ci
1714b877906bSopenharmony_ci	wl_surface.set_buffer_scale changes the pending buffer scale.
1715b877906bSopenharmony_ci	wl_surface.commit copies the pending buffer scale to the current one.
1716b877906bSopenharmony_ci	Otherwise, the pending and current values are never changed.
1717b877906bSopenharmony_ci
1718b877906bSopenharmony_ci	The purpose of this request is to allow clients to supply higher
1719b877906bSopenharmony_ci	resolution buffer data for use on high resolution outputs. It is
1720b877906bSopenharmony_ci	intended that you pick the same buffer scale as the scale of the
1721b877906bSopenharmony_ci	output that the surface is displayed on. This means the compositor
1722b877906bSopenharmony_ci	can avoid scaling when rendering the surface on that output.
1723b877906bSopenharmony_ci
1724b877906bSopenharmony_ci	Note that if the scale is larger than 1, then you have to attach
1725b877906bSopenharmony_ci	a buffer that is larger (by a factor of scale in each dimension)
1726b877906bSopenharmony_ci	than the desired surface size.
1727b877906bSopenharmony_ci
1728b877906bSopenharmony_ci	If scale is not positive the invalid_scale protocol error is
1729b877906bSopenharmony_ci	raised.
1730b877906bSopenharmony_ci      </description>
1731b877906bSopenharmony_ci      <arg name="scale" type="int"
1732b877906bSopenharmony_ci	   summary="positive scale for interpreting buffer contents"/>
1733b877906bSopenharmony_ci    </request>
1734b877906bSopenharmony_ci
1735b877906bSopenharmony_ci    <!-- Version 4 additions -->
1736b877906bSopenharmony_ci    <request name="damage_buffer" since="4">
1737b877906bSopenharmony_ci      <description summary="mark part of the surface damaged using buffer coordinates">
1738b877906bSopenharmony_ci	This request is used to describe the regions where the pending
1739b877906bSopenharmony_ci	buffer is different from the current surface contents, and where
1740b877906bSopenharmony_ci	the surface therefore needs to be repainted. The compositor
1741b877906bSopenharmony_ci	ignores the parts of the damage that fall outside of the surface.
1742b877906bSopenharmony_ci
1743b877906bSopenharmony_ci	Damage is double-buffered state, see wl_surface.commit.
1744b877906bSopenharmony_ci
1745b877906bSopenharmony_ci	The damage rectangle is specified in buffer coordinates,
1746b877906bSopenharmony_ci	where x and y specify the upper left corner of the damage rectangle.
1747b877906bSopenharmony_ci
1748b877906bSopenharmony_ci	The initial value for pending damage is empty: no damage.
1749b877906bSopenharmony_ci	wl_surface.damage_buffer adds pending damage: the new pending
1750b877906bSopenharmony_ci	damage is the union of old pending damage and the given rectangle.
1751b877906bSopenharmony_ci
1752b877906bSopenharmony_ci	wl_surface.commit assigns pending damage as the current damage,
1753b877906bSopenharmony_ci	and clears pending damage. The server will clear the current
1754b877906bSopenharmony_ci	damage as it repaints the surface.
1755b877906bSopenharmony_ci
1756b877906bSopenharmony_ci	This request differs from wl_surface.damage in only one way - it
1757b877906bSopenharmony_ci	takes damage in buffer coordinates instead of surface-local
1758b877906bSopenharmony_ci	coordinates. While this generally is more intuitive than surface
1759b877906bSopenharmony_ci	coordinates, it is especially desirable when using wp_viewport
1760b877906bSopenharmony_ci	or when a drawing library (like EGL) is unaware of buffer scale
1761b877906bSopenharmony_ci	and buffer transform.
1762b877906bSopenharmony_ci
1763b877906bSopenharmony_ci	Note: Because buffer transformation changes and damage requests may
1764b877906bSopenharmony_ci	be interleaved in the protocol stream, it is impossible to determine
1765b877906bSopenharmony_ci	the actual mapping between surface and buffer damage until
1766b877906bSopenharmony_ci	wl_surface.commit time. Therefore, compositors wishing to take both
1767b877906bSopenharmony_ci	kinds of damage into account will have to accumulate damage from the
1768b877906bSopenharmony_ci	two requests separately and only transform from one to the other
1769b877906bSopenharmony_ci	after receiving the wl_surface.commit.
1770b877906bSopenharmony_ci      </description>
1771b877906bSopenharmony_ci      <arg name="x" type="int" summary="buffer-local x coordinate"/>
1772b877906bSopenharmony_ci      <arg name="y" type="int" summary="buffer-local y coordinate"/>
1773b877906bSopenharmony_ci      <arg name="width" type="int" summary="width of damage rectangle"/>
1774b877906bSopenharmony_ci      <arg name="height" type="int" summary="height of damage rectangle"/>
1775b877906bSopenharmony_ci    </request>
1776b877906bSopenharmony_ci
1777b877906bSopenharmony_ci    <!-- Version 5 additions -->
1778b877906bSopenharmony_ci
1779b877906bSopenharmony_ci    <request name="offset" since="5">
1780b877906bSopenharmony_ci      <description summary="set the surface contents offset">
1781b877906bSopenharmony_ci	The x and y arguments specify the location of the new pending
1782b877906bSopenharmony_ci	buffer's upper left corner, relative to the current buffer's upper
1783b877906bSopenharmony_ci	left corner, in surface-local coordinates. In other words, the
1784b877906bSopenharmony_ci	x and y, combined with the new surface size define in which
1785b877906bSopenharmony_ci	directions the surface's size changes.
1786b877906bSopenharmony_ci
1787b877906bSopenharmony_ci	Surface location offset is double-buffered state, see
1788b877906bSopenharmony_ci	wl_surface.commit.
1789b877906bSopenharmony_ci
1790b877906bSopenharmony_ci	This request is semantically equivalent to and the replaces the x and y
1791b877906bSopenharmony_ci	arguments in the wl_surface.attach request in wl_surface versions prior
1792b877906bSopenharmony_ci	to 5. See wl_surface.attach for details.
1793b877906bSopenharmony_ci      </description>
1794b877906bSopenharmony_ci      <arg name="x" type="int" summary="surface-local x coordinate"/>
1795b877906bSopenharmony_ci      <arg name="y" type="int" summary="surface-local y coordinate"/>
1796b877906bSopenharmony_ci    </request>
1797b877906bSopenharmony_ci
1798b877906bSopenharmony_ci    <!-- Version 6 additions -->
1799b877906bSopenharmony_ci
1800b877906bSopenharmony_ci    <event name="preferred_buffer_scale" since="6">
1801b877906bSopenharmony_ci      <description summary="preferred buffer scale for the surface">
1802b877906bSopenharmony_ci	This event indicates the preferred buffer scale for this surface. It is
1803b877906bSopenharmony_ci	sent whenever the compositor's preference changes.
1804b877906bSopenharmony_ci
1805b877906bSopenharmony_ci	It is intended that scaling aware clients use this event to scale their
1806b877906bSopenharmony_ci	content and use wl_surface.set_buffer_scale to indicate the scale they
1807b877906bSopenharmony_ci	have rendered with. This allows clients to supply a higher detail
1808b877906bSopenharmony_ci	buffer.
1809b877906bSopenharmony_ci      </description>
1810b877906bSopenharmony_ci      <arg name="factor" type="int" summary="preferred scaling factor"/>
1811b877906bSopenharmony_ci    </event>
1812b877906bSopenharmony_ci
1813b877906bSopenharmony_ci    <event name="preferred_buffer_transform" since="6">
1814b877906bSopenharmony_ci      <description summary="preferred buffer transform for the surface">
1815b877906bSopenharmony_ci	This event indicates the preferred buffer transform for this surface.
1816b877906bSopenharmony_ci	It is sent whenever the compositor's preference changes.
1817b877906bSopenharmony_ci
1818b877906bSopenharmony_ci	It is intended that transform aware clients use this event to apply the
1819b877906bSopenharmony_ci	transform to their content and use wl_surface.set_buffer_transform to
1820b877906bSopenharmony_ci	indicate the transform they have rendered with.
1821b877906bSopenharmony_ci      </description>
1822b877906bSopenharmony_ci      <arg name="transform" type="uint" enum="wl_output.transform"
1823b877906bSopenharmony_ci	   summary="preferred transform"/>
1824b877906bSopenharmony_ci    </event>
1825b877906bSopenharmony_ci   </interface>
1826b877906bSopenharmony_ci
1827b877906bSopenharmony_ci  <interface name="wl_seat" version="9">
1828b877906bSopenharmony_ci    <description summary="group of input devices">
1829b877906bSopenharmony_ci      A seat is a group of keyboards, pointer and touch devices. This
1830b877906bSopenharmony_ci      object is published as a global during start up, or when such a
1831b877906bSopenharmony_ci      device is hot plugged.  A seat typically has a pointer and
1832b877906bSopenharmony_ci      maintains a keyboard focus and a pointer focus.
1833b877906bSopenharmony_ci    </description>
1834b877906bSopenharmony_ci
1835b877906bSopenharmony_ci    <enum name="capability" bitfield="true">
1836b877906bSopenharmony_ci      <description summary="seat capability bitmask">
1837b877906bSopenharmony_ci	This is a bitmask of capabilities this seat has; if a member is
1838b877906bSopenharmony_ci	set, then it is present on the seat.
1839b877906bSopenharmony_ci      </description>
1840b877906bSopenharmony_ci      <entry name="pointer" value="1" summary="the seat has pointer devices"/>
1841b877906bSopenharmony_ci      <entry name="keyboard" value="2" summary="the seat has one or more keyboards"/>
1842b877906bSopenharmony_ci      <entry name="touch" value="4" summary="the seat has touch devices"/>
1843b877906bSopenharmony_ci    </enum>
1844b877906bSopenharmony_ci
1845b877906bSopenharmony_ci    <enum name="error">
1846b877906bSopenharmony_ci      <description summary="wl_seat error values">
1847b877906bSopenharmony_ci	These errors can be emitted in response to wl_seat requests.
1848b877906bSopenharmony_ci      </description>
1849b877906bSopenharmony_ci      <entry name="missing_capability" value="0"
1850b877906bSopenharmony_ci	     summary="get_pointer, get_keyboard or get_touch called on seat without the matching capability"/>
1851b877906bSopenharmony_ci    </enum>
1852b877906bSopenharmony_ci
1853b877906bSopenharmony_ci    <event name="capabilities">
1854b877906bSopenharmony_ci      <description summary="seat capabilities changed">
1855b877906bSopenharmony_ci	This is emitted whenever a seat gains or loses the pointer,
1856b877906bSopenharmony_ci	keyboard or touch capabilities.  The argument is a capability
1857b877906bSopenharmony_ci	enum containing the complete set of capabilities this seat has.
1858b877906bSopenharmony_ci
1859b877906bSopenharmony_ci	When the pointer capability is added, a client may create a
1860b877906bSopenharmony_ci	wl_pointer object using the wl_seat.get_pointer request. This object
1861b877906bSopenharmony_ci	will receive pointer events until the capability is removed in the
1862b877906bSopenharmony_ci	future.
1863b877906bSopenharmony_ci
1864b877906bSopenharmony_ci	When the pointer capability is removed, a client should destroy the
1865b877906bSopenharmony_ci	wl_pointer objects associated with the seat where the capability was
1866b877906bSopenharmony_ci	removed, using the wl_pointer.release request. No further pointer
1867b877906bSopenharmony_ci	events will be received on these objects.
1868b877906bSopenharmony_ci
1869b877906bSopenharmony_ci	In some compositors, if a seat regains the pointer capability and a
1870b877906bSopenharmony_ci	client has a previously obtained wl_pointer object of version 4 or
1871b877906bSopenharmony_ci	less, that object may start sending pointer events again. This
1872b877906bSopenharmony_ci	behavior is considered a misinterpretation of the intended behavior
1873b877906bSopenharmony_ci	and must not be relied upon by the client. wl_pointer objects of
1874b877906bSopenharmony_ci	version 5 or later must not send events if created before the most
1875b877906bSopenharmony_ci	recent event notifying the client of an added pointer capability.
1876b877906bSopenharmony_ci
1877b877906bSopenharmony_ci	The above behavior also applies to wl_keyboard and wl_touch with the
1878b877906bSopenharmony_ci	keyboard and touch capabilities, respectively.
1879b877906bSopenharmony_ci      </description>
1880b877906bSopenharmony_ci      <arg name="capabilities" type="uint" enum="capability" summary="capabilities of the seat"/>
1881b877906bSopenharmony_ci    </event>
1882b877906bSopenharmony_ci
1883b877906bSopenharmony_ci    <request name="get_pointer">
1884b877906bSopenharmony_ci      <description summary="return pointer object">
1885b877906bSopenharmony_ci	The ID provided will be initialized to the wl_pointer interface
1886b877906bSopenharmony_ci	for this seat.
1887b877906bSopenharmony_ci
1888b877906bSopenharmony_ci	This request only takes effect if the seat has the pointer
1889b877906bSopenharmony_ci	capability, or has had the pointer capability in the past.
1890b877906bSopenharmony_ci	It is a protocol violation to issue this request on a seat that has
1891b877906bSopenharmony_ci	never had the pointer capability. The missing_capability error will
1892b877906bSopenharmony_ci	be sent in this case.
1893b877906bSopenharmony_ci      </description>
1894b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_pointer" summary="seat pointer"/>
1895b877906bSopenharmony_ci    </request>
1896b877906bSopenharmony_ci
1897b877906bSopenharmony_ci    <request name="get_keyboard">
1898b877906bSopenharmony_ci      <description summary="return keyboard object">
1899b877906bSopenharmony_ci	The ID provided will be initialized to the wl_keyboard interface
1900b877906bSopenharmony_ci	for this seat.
1901b877906bSopenharmony_ci
1902b877906bSopenharmony_ci	This request only takes effect if the seat has the keyboard
1903b877906bSopenharmony_ci	capability, or has had the keyboard capability in the past.
1904b877906bSopenharmony_ci	It is a protocol violation to issue this request on a seat that has
1905b877906bSopenharmony_ci	never had the keyboard capability. The missing_capability error will
1906b877906bSopenharmony_ci	be sent in this case.
1907b877906bSopenharmony_ci      </description>
1908b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_keyboard" summary="seat keyboard"/>
1909b877906bSopenharmony_ci    </request>
1910b877906bSopenharmony_ci
1911b877906bSopenharmony_ci    <request name="get_touch">
1912b877906bSopenharmony_ci      <description summary="return touch object">
1913b877906bSopenharmony_ci	The ID provided will be initialized to the wl_touch interface
1914b877906bSopenharmony_ci	for this seat.
1915b877906bSopenharmony_ci
1916b877906bSopenharmony_ci	This request only takes effect if the seat has the touch
1917b877906bSopenharmony_ci	capability, or has had the touch capability in the past.
1918b877906bSopenharmony_ci	It is a protocol violation to issue this request on a seat that has
1919b877906bSopenharmony_ci	never had the touch capability. The missing_capability error will
1920b877906bSopenharmony_ci	be sent in this case.
1921b877906bSopenharmony_ci      </description>
1922b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_touch" summary="seat touch interface"/>
1923b877906bSopenharmony_ci    </request>
1924b877906bSopenharmony_ci
1925b877906bSopenharmony_ci    <!-- Version 2 additions -->
1926b877906bSopenharmony_ci
1927b877906bSopenharmony_ci    <event name="name" since="2">
1928b877906bSopenharmony_ci      <description summary="unique identifier for this seat">
1929b877906bSopenharmony_ci	In a multi-seat configuration the seat name can be used by clients to
1930b877906bSopenharmony_ci	help identify which physical devices the seat represents.
1931b877906bSopenharmony_ci
1932b877906bSopenharmony_ci	The seat name is a UTF-8 string with no convention defined for its
1933b877906bSopenharmony_ci	contents. Each name is unique among all wl_seat globals. The name is
1934b877906bSopenharmony_ci	only guaranteed to be unique for the current compositor instance.
1935b877906bSopenharmony_ci
1936b877906bSopenharmony_ci	The same seat names are used for all clients. Thus, the name can be
1937b877906bSopenharmony_ci	shared across processes to refer to a specific wl_seat global.
1938b877906bSopenharmony_ci
1939b877906bSopenharmony_ci	The name event is sent after binding to the seat global. This event is
1940b877906bSopenharmony_ci	only sent once per seat object, and the name does not change over the
1941b877906bSopenharmony_ci	lifetime of the wl_seat global.
1942b877906bSopenharmony_ci
1943b877906bSopenharmony_ci	Compositors may re-use the same seat name if the wl_seat global is
1944b877906bSopenharmony_ci	destroyed and re-created later.
1945b877906bSopenharmony_ci      </description>
1946b877906bSopenharmony_ci      <arg name="name" type="string" summary="seat identifier"/>
1947b877906bSopenharmony_ci    </event>
1948b877906bSopenharmony_ci
1949b877906bSopenharmony_ci    <!-- Version 5 additions -->
1950b877906bSopenharmony_ci
1951b877906bSopenharmony_ci    <request name="release" type="destructor" since="5">
1952b877906bSopenharmony_ci      <description summary="release the seat object">
1953b877906bSopenharmony_ci	Using this request a client can tell the server that it is not going to
1954b877906bSopenharmony_ci	use the seat object anymore.
1955b877906bSopenharmony_ci      </description>
1956b877906bSopenharmony_ci    </request>
1957b877906bSopenharmony_ci
1958b877906bSopenharmony_ci  </interface>
1959b877906bSopenharmony_ci
1960b877906bSopenharmony_ci  <interface name="wl_pointer" version="9">
1961b877906bSopenharmony_ci    <description summary="pointer input device">
1962b877906bSopenharmony_ci      The wl_pointer interface represents one or more input devices,
1963b877906bSopenharmony_ci      such as mice, which control the pointer location and pointer_focus
1964b877906bSopenharmony_ci      of a seat.
1965b877906bSopenharmony_ci
1966b877906bSopenharmony_ci      The wl_pointer interface generates motion, enter and leave
1967b877906bSopenharmony_ci      events for the surfaces that the pointer is located over,
1968b877906bSopenharmony_ci      and button and axis events for button presses, button releases
1969b877906bSopenharmony_ci      and scrolling.
1970b877906bSopenharmony_ci    </description>
1971b877906bSopenharmony_ci
1972b877906bSopenharmony_ci    <enum name="error">
1973b877906bSopenharmony_ci      <entry name="role" value="0" summary="given wl_surface has another role"/>
1974b877906bSopenharmony_ci    </enum>
1975b877906bSopenharmony_ci
1976b877906bSopenharmony_ci    <request name="set_cursor">
1977b877906bSopenharmony_ci      <description summary="set the pointer surface">
1978b877906bSopenharmony_ci	Set the pointer surface, i.e., the surface that contains the
1979b877906bSopenharmony_ci	pointer image (cursor). This request gives the surface the role
1980b877906bSopenharmony_ci	of a cursor. If the surface already has another role, it raises
1981b877906bSopenharmony_ci	a protocol error.
1982b877906bSopenharmony_ci
1983b877906bSopenharmony_ci	The cursor actually changes only if the pointer
1984b877906bSopenharmony_ci	focus for this device is one of the requesting client's surfaces
1985b877906bSopenharmony_ci	or the surface parameter is the current pointer surface. If
1986b877906bSopenharmony_ci	there was a previous surface set with this request it is
1987b877906bSopenharmony_ci	replaced. If surface is NULL, the pointer image is hidden.
1988b877906bSopenharmony_ci
1989b877906bSopenharmony_ci	The parameters hotspot_x and hotspot_y define the position of
1990b877906bSopenharmony_ci	the pointer surface relative to the pointer location. Its
1991b877906bSopenharmony_ci	top-left corner is always at (x, y) - (hotspot_x, hotspot_y),
1992b877906bSopenharmony_ci	where (x, y) are the coordinates of the pointer location, in
1993b877906bSopenharmony_ci	surface-local coordinates.
1994b877906bSopenharmony_ci
1995b877906bSopenharmony_ci	On surface.attach requests to the pointer surface, hotspot_x
1996b877906bSopenharmony_ci	and hotspot_y are decremented by the x and y parameters
1997b877906bSopenharmony_ci	passed to the request. Attach must be confirmed by
1998b877906bSopenharmony_ci	wl_surface.commit as usual.
1999b877906bSopenharmony_ci
2000b877906bSopenharmony_ci	The hotspot can also be updated by passing the currently set
2001b877906bSopenharmony_ci	pointer surface to this request with new values for hotspot_x
2002b877906bSopenharmony_ci	and hotspot_y.
2003b877906bSopenharmony_ci
2004b877906bSopenharmony_ci	The input region is ignored for wl_surfaces with the role of
2005b877906bSopenharmony_ci	a cursor. When the use as a cursor ends, the wl_surface is
2006b877906bSopenharmony_ci	unmapped.
2007b877906bSopenharmony_ci
2008b877906bSopenharmony_ci	The serial parameter must match the latest wl_pointer.enter
2009b877906bSopenharmony_ci	serial number sent to the client. Otherwise the request will be
2010b877906bSopenharmony_ci	ignored.
2011b877906bSopenharmony_ci      </description>
2012b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the enter event"/>
2013b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" allow-null="true"
2014b877906bSopenharmony_ci	   summary="pointer surface"/>
2015b877906bSopenharmony_ci      <arg name="hotspot_x" type="int" summary="surface-local x coordinate"/>
2016b877906bSopenharmony_ci      <arg name="hotspot_y" type="int" summary="surface-local y coordinate"/>
2017b877906bSopenharmony_ci    </request>
2018b877906bSopenharmony_ci
2019b877906bSopenharmony_ci    <event name="enter">
2020b877906bSopenharmony_ci      <description summary="enter event">
2021b877906bSopenharmony_ci	Notification that this seat's pointer is focused on a certain
2022b877906bSopenharmony_ci	surface.
2023b877906bSopenharmony_ci
2024b877906bSopenharmony_ci	When a seat's focus enters a surface, the pointer image
2025b877906bSopenharmony_ci	is undefined and a client should respond to this event by setting
2026b877906bSopenharmony_ci	an appropriate pointer image with the set_cursor request.
2027b877906bSopenharmony_ci      </description>
2028b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the enter event"/>
2029b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" summary="surface entered by the pointer"/>
2030b877906bSopenharmony_ci      <arg name="surface_x" type="fixed" summary="surface-local x coordinate"/>
2031b877906bSopenharmony_ci      <arg name="surface_y" type="fixed" summary="surface-local y coordinate"/>
2032b877906bSopenharmony_ci    </event>
2033b877906bSopenharmony_ci
2034b877906bSopenharmony_ci    <event name="leave">
2035b877906bSopenharmony_ci      <description summary="leave event">
2036b877906bSopenharmony_ci	Notification that this seat's pointer is no longer focused on
2037b877906bSopenharmony_ci	a certain surface.
2038b877906bSopenharmony_ci
2039b877906bSopenharmony_ci	The leave notification is sent before the enter notification
2040b877906bSopenharmony_ci	for the new focus.
2041b877906bSopenharmony_ci      </description>
2042b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the leave event"/>
2043b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" summary="surface left by the pointer"/>
2044b877906bSopenharmony_ci    </event>
2045b877906bSopenharmony_ci
2046b877906bSopenharmony_ci    <event name="motion">
2047b877906bSopenharmony_ci      <description summary="pointer motion event">
2048b877906bSopenharmony_ci	Notification of pointer location change. The arguments
2049b877906bSopenharmony_ci	surface_x and surface_y are the location relative to the
2050b877906bSopenharmony_ci	focused surface.
2051b877906bSopenharmony_ci      </description>
2052b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2053b877906bSopenharmony_ci      <arg name="surface_x" type="fixed" summary="surface-local x coordinate"/>
2054b877906bSopenharmony_ci      <arg name="surface_y" type="fixed" summary="surface-local y coordinate"/>
2055b877906bSopenharmony_ci    </event>
2056b877906bSopenharmony_ci
2057b877906bSopenharmony_ci    <enum name="button_state">
2058b877906bSopenharmony_ci      <description summary="physical button state">
2059b877906bSopenharmony_ci	Describes the physical state of a button that produced the button
2060b877906bSopenharmony_ci	event.
2061b877906bSopenharmony_ci      </description>
2062b877906bSopenharmony_ci      <entry name="released" value="0" summary="the button is not pressed"/>
2063b877906bSopenharmony_ci      <entry name="pressed" value="1" summary="the button is pressed"/>
2064b877906bSopenharmony_ci    </enum>
2065b877906bSopenharmony_ci
2066b877906bSopenharmony_ci    <event name="button">
2067b877906bSopenharmony_ci      <description summary="pointer button event">
2068b877906bSopenharmony_ci	Mouse button click and release notifications.
2069b877906bSopenharmony_ci
2070b877906bSopenharmony_ci	The location of the click is given by the last motion or
2071b877906bSopenharmony_ci	enter event.
2072b877906bSopenharmony_ci	The time argument is a timestamp with millisecond
2073b877906bSopenharmony_ci	granularity, with an undefined base.
2074b877906bSopenharmony_ci
2075b877906bSopenharmony_ci	The button is a button code as defined in the Linux kernel's
2076b877906bSopenharmony_ci	linux/input-event-codes.h header file, e.g. BTN_LEFT.
2077b877906bSopenharmony_ci
2078b877906bSopenharmony_ci	Any 16-bit button code value is reserved for future additions to the
2079b877906bSopenharmony_ci	kernel's event code list. All other button codes above 0xFFFF are
2080b877906bSopenharmony_ci	currently undefined but may be used in future versions of this
2081b877906bSopenharmony_ci	protocol.
2082b877906bSopenharmony_ci      </description>
2083b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the button event"/>
2084b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2085b877906bSopenharmony_ci      <arg name="button" type="uint" summary="button that produced the event"/>
2086b877906bSopenharmony_ci      <arg name="state" type="uint" enum="button_state" summary="physical state of the button"/>
2087b877906bSopenharmony_ci    </event>
2088b877906bSopenharmony_ci
2089b877906bSopenharmony_ci    <enum name="axis">
2090b877906bSopenharmony_ci      <description summary="axis types">
2091b877906bSopenharmony_ci	Describes the axis types of scroll events.
2092b877906bSopenharmony_ci      </description>
2093b877906bSopenharmony_ci      <entry name="vertical_scroll" value="0" summary="vertical axis"/>
2094b877906bSopenharmony_ci      <entry name="horizontal_scroll" value="1" summary="horizontal axis"/>
2095b877906bSopenharmony_ci    </enum>
2096b877906bSopenharmony_ci
2097b877906bSopenharmony_ci    <event name="axis">
2098b877906bSopenharmony_ci      <description summary="axis event">
2099b877906bSopenharmony_ci	Scroll and other axis notifications.
2100b877906bSopenharmony_ci
2101b877906bSopenharmony_ci	For scroll events (vertical and horizontal scroll axes), the
2102b877906bSopenharmony_ci	value parameter is the length of a vector along the specified
2103b877906bSopenharmony_ci	axis in a coordinate space identical to those of motion events,
2104b877906bSopenharmony_ci	representing a relative movement along the specified axis.
2105b877906bSopenharmony_ci
2106b877906bSopenharmony_ci	For devices that support movements non-parallel to axes multiple
2107b877906bSopenharmony_ci	axis events will be emitted.
2108b877906bSopenharmony_ci
2109b877906bSopenharmony_ci	When applicable, for example for touch pads, the server can
2110b877906bSopenharmony_ci	choose to emit scroll events where the motion vector is
2111b877906bSopenharmony_ci	equivalent to a motion event vector.
2112b877906bSopenharmony_ci
2113b877906bSopenharmony_ci	When applicable, a client can transform its content relative to the
2114b877906bSopenharmony_ci	scroll distance.
2115b877906bSopenharmony_ci      </description>
2116b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2117b877906bSopenharmony_ci      <arg name="axis" type="uint" enum="axis" summary="axis type"/>
2118b877906bSopenharmony_ci      <arg name="value" type="fixed" summary="length of vector in surface-local coordinate space"/>
2119b877906bSopenharmony_ci    </event>
2120b877906bSopenharmony_ci
2121b877906bSopenharmony_ci    <!-- Version 3 additions -->
2122b877906bSopenharmony_ci
2123b877906bSopenharmony_ci    <request name="release" type="destructor" since="3">
2124b877906bSopenharmony_ci      <description summary="release the pointer object">
2125b877906bSopenharmony_ci	Using this request a client can tell the server that it is not going to
2126b877906bSopenharmony_ci	use the pointer object anymore.
2127b877906bSopenharmony_ci
2128b877906bSopenharmony_ci	This request destroys the pointer proxy object, so clients must not call
2129b877906bSopenharmony_ci	wl_pointer_destroy() after using this request.
2130b877906bSopenharmony_ci      </description>
2131b877906bSopenharmony_ci    </request>
2132b877906bSopenharmony_ci
2133b877906bSopenharmony_ci    <!-- Version 5 additions -->
2134b877906bSopenharmony_ci
2135b877906bSopenharmony_ci    <event name="frame" since="5">
2136b877906bSopenharmony_ci      <description summary="end of a pointer event sequence">
2137b877906bSopenharmony_ci	Indicates the end of a set of events that logically belong together.
2138b877906bSopenharmony_ci	A client is expected to accumulate the data in all events within the
2139b877906bSopenharmony_ci	frame before proceeding.
2140b877906bSopenharmony_ci
2141b877906bSopenharmony_ci	All wl_pointer events before a wl_pointer.frame event belong
2142b877906bSopenharmony_ci	logically together. For example, in a diagonal scroll motion the
2143b877906bSopenharmony_ci	compositor will send an optional wl_pointer.axis_source event, two
2144b877906bSopenharmony_ci	wl_pointer.axis events (horizontal and vertical) and finally a
2145b877906bSopenharmony_ci	wl_pointer.frame event. The client may use this information to
2146b877906bSopenharmony_ci	calculate a diagonal vector for scrolling.
2147b877906bSopenharmony_ci
2148b877906bSopenharmony_ci	When multiple wl_pointer.axis events occur within the same frame,
2149b877906bSopenharmony_ci	the motion vector is the combined motion of all events.
2150b877906bSopenharmony_ci	When a wl_pointer.axis and a wl_pointer.axis_stop event occur within
2151b877906bSopenharmony_ci	the same frame, this indicates that axis movement in one axis has
2152b877906bSopenharmony_ci	stopped but continues in the other axis.
2153b877906bSopenharmony_ci	When multiple wl_pointer.axis_stop events occur within the same
2154b877906bSopenharmony_ci	frame, this indicates that these axes stopped in the same instance.
2155b877906bSopenharmony_ci
2156b877906bSopenharmony_ci	A wl_pointer.frame event is sent for every logical event group,
2157b877906bSopenharmony_ci	even if the group only contains a single wl_pointer event.
2158b877906bSopenharmony_ci	Specifically, a client may get a sequence: motion, frame, button,
2159b877906bSopenharmony_ci	frame, axis, frame, axis_stop, frame.
2160b877906bSopenharmony_ci
2161b877906bSopenharmony_ci	The wl_pointer.enter and wl_pointer.leave events are logical events
2162b877906bSopenharmony_ci	generated by the compositor and not the hardware. These events are
2163b877906bSopenharmony_ci	also grouped by a wl_pointer.frame. When a pointer moves from one
2164b877906bSopenharmony_ci	surface to another, a compositor should group the
2165b877906bSopenharmony_ci	wl_pointer.leave event within the same wl_pointer.frame.
2166b877906bSopenharmony_ci	However, a client must not rely on wl_pointer.leave and
2167b877906bSopenharmony_ci	wl_pointer.enter being in the same wl_pointer.frame.
2168b877906bSopenharmony_ci	Compositor-specific policies may require the wl_pointer.leave and
2169b877906bSopenharmony_ci	wl_pointer.enter event being split across multiple wl_pointer.frame
2170b877906bSopenharmony_ci	groups.
2171b877906bSopenharmony_ci      </description>
2172b877906bSopenharmony_ci    </event>
2173b877906bSopenharmony_ci
2174b877906bSopenharmony_ci    <enum name="axis_source">
2175b877906bSopenharmony_ci      <description summary="axis source types">
2176b877906bSopenharmony_ci	Describes the source types for axis events. This indicates to the
2177b877906bSopenharmony_ci	client how an axis event was physically generated; a client may
2178b877906bSopenharmony_ci	adjust the user interface accordingly. For example, scroll events
2179b877906bSopenharmony_ci	from a "finger" source may be in a smooth coordinate space with
2180b877906bSopenharmony_ci	kinetic scrolling whereas a "wheel" source may be in discrete steps
2181b877906bSopenharmony_ci	of a number of lines.
2182b877906bSopenharmony_ci
2183b877906bSopenharmony_ci	The "continuous" axis source is a device generating events in a
2184b877906bSopenharmony_ci	continuous coordinate space, but using something other than a
2185b877906bSopenharmony_ci	finger. One example for this source is button-based scrolling where
2186b877906bSopenharmony_ci	the vertical motion of a device is converted to scroll events while
2187b877906bSopenharmony_ci	a button is held down.
2188b877906bSopenharmony_ci
2189b877906bSopenharmony_ci	The "wheel tilt" axis source indicates that the actual device is a
2190b877906bSopenharmony_ci	wheel but the scroll event is not caused by a rotation but a
2191b877906bSopenharmony_ci	(usually sideways) tilt of the wheel.
2192b877906bSopenharmony_ci      </description>
2193b877906bSopenharmony_ci      <entry name="wheel" value="0" summary="a physical wheel rotation" />
2194b877906bSopenharmony_ci      <entry name="finger" value="1" summary="finger on a touch surface" />
2195b877906bSopenharmony_ci      <entry name="continuous" value="2" summary="continuous coordinate space"/>
2196b877906bSopenharmony_ci      <entry name="wheel_tilt" value="3" summary="a physical wheel tilt" since="6"/>
2197b877906bSopenharmony_ci    </enum>
2198b877906bSopenharmony_ci
2199b877906bSopenharmony_ci    <event name="axis_source" since="5">
2200b877906bSopenharmony_ci      <description summary="axis source event">
2201b877906bSopenharmony_ci	Source information for scroll and other axes.
2202b877906bSopenharmony_ci
2203b877906bSopenharmony_ci	This event does not occur on its own. It is sent before a
2204b877906bSopenharmony_ci	wl_pointer.frame event and carries the source information for
2205b877906bSopenharmony_ci	all events within that frame.
2206b877906bSopenharmony_ci
2207b877906bSopenharmony_ci	The source specifies how this event was generated. If the source is
2208b877906bSopenharmony_ci	wl_pointer.axis_source.finger, a wl_pointer.axis_stop event will be
2209b877906bSopenharmony_ci	sent when the user lifts the finger off the device.
2210b877906bSopenharmony_ci
2211b877906bSopenharmony_ci	If the source is wl_pointer.axis_source.wheel,
2212b877906bSopenharmony_ci	wl_pointer.axis_source.wheel_tilt or
2213b877906bSopenharmony_ci	wl_pointer.axis_source.continuous, a wl_pointer.axis_stop event may
2214b877906bSopenharmony_ci	or may not be sent. Whether a compositor sends an axis_stop event
2215b877906bSopenharmony_ci	for these sources is hardware-specific and implementation-dependent;
2216b877906bSopenharmony_ci	clients must not rely on receiving an axis_stop event for these
2217b877906bSopenharmony_ci	scroll sources and should treat scroll sequences from these scroll
2218b877906bSopenharmony_ci	sources as unterminated by default.
2219b877906bSopenharmony_ci
2220b877906bSopenharmony_ci	This event is optional. If the source is unknown for a particular
2221b877906bSopenharmony_ci	axis event sequence, no event is sent.
2222b877906bSopenharmony_ci	Only one wl_pointer.axis_source event is permitted per frame.
2223b877906bSopenharmony_ci
2224b877906bSopenharmony_ci	The order of wl_pointer.axis_discrete and wl_pointer.axis_source is
2225b877906bSopenharmony_ci	not guaranteed.
2226b877906bSopenharmony_ci      </description>
2227b877906bSopenharmony_ci      <arg name="axis_source" type="uint" enum="axis_source" summary="source of the axis event"/>
2228b877906bSopenharmony_ci    </event>
2229b877906bSopenharmony_ci
2230b877906bSopenharmony_ci    <event name="axis_stop" since="5">
2231b877906bSopenharmony_ci      <description summary="axis stop event">
2232b877906bSopenharmony_ci	Stop notification for scroll and other axes.
2233b877906bSopenharmony_ci
2234b877906bSopenharmony_ci	For some wl_pointer.axis_source types, a wl_pointer.axis_stop event
2235b877906bSopenharmony_ci	is sent to notify a client that the axis sequence has terminated.
2236b877906bSopenharmony_ci	This enables the client to implement kinetic scrolling.
2237b877906bSopenharmony_ci	See the wl_pointer.axis_source documentation for information on when
2238b877906bSopenharmony_ci	this event may be generated.
2239b877906bSopenharmony_ci
2240b877906bSopenharmony_ci	Any wl_pointer.axis events with the same axis_source after this
2241b877906bSopenharmony_ci	event should be considered as the start of a new axis motion.
2242b877906bSopenharmony_ci
2243b877906bSopenharmony_ci	The timestamp is to be interpreted identical to the timestamp in the
2244b877906bSopenharmony_ci	wl_pointer.axis event. The timestamp value may be the same as a
2245b877906bSopenharmony_ci	preceding wl_pointer.axis event.
2246b877906bSopenharmony_ci      </description>
2247b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2248b877906bSopenharmony_ci      <arg name="axis" type="uint" enum="axis" summary="the axis stopped with this event"/>
2249b877906bSopenharmony_ci    </event>
2250b877906bSopenharmony_ci
2251b877906bSopenharmony_ci    <event name="axis_discrete" since="5">
2252b877906bSopenharmony_ci      <description summary="axis click event">
2253b877906bSopenharmony_ci	Discrete step information for scroll and other axes.
2254b877906bSopenharmony_ci
2255b877906bSopenharmony_ci	This event carries the axis value of the wl_pointer.axis event in
2256b877906bSopenharmony_ci	discrete steps (e.g. mouse wheel clicks).
2257b877906bSopenharmony_ci
2258b877906bSopenharmony_ci	This event is deprecated with wl_pointer version 8 - this event is not
2259b877906bSopenharmony_ci	sent to clients supporting version 8 or later.
2260b877906bSopenharmony_ci
2261b877906bSopenharmony_ci	This event does not occur on its own, it is coupled with a
2262b877906bSopenharmony_ci	wl_pointer.axis event that represents this axis value on a
2263b877906bSopenharmony_ci	continuous scale. The protocol guarantees that each axis_discrete
2264b877906bSopenharmony_ci	event is always followed by exactly one axis event with the same
2265b877906bSopenharmony_ci	axis number within the same wl_pointer.frame. Note that the protocol
2266b877906bSopenharmony_ci	allows for other events to occur between the axis_discrete and
2267b877906bSopenharmony_ci	its coupled axis event, including other axis_discrete or axis
2268b877906bSopenharmony_ci	events. A wl_pointer.frame must not contain more than one axis_discrete
2269b877906bSopenharmony_ci	event per axis type.
2270b877906bSopenharmony_ci
2271b877906bSopenharmony_ci	This event is optional; continuous scrolling devices
2272b877906bSopenharmony_ci	like two-finger scrolling on touchpads do not have discrete
2273b877906bSopenharmony_ci	steps and do not generate this event.
2274b877906bSopenharmony_ci
2275b877906bSopenharmony_ci	The discrete value carries the directional information. e.g. a value
2276b877906bSopenharmony_ci	of -2 is two steps towards the negative direction of this axis.
2277b877906bSopenharmony_ci
2278b877906bSopenharmony_ci	The axis number is identical to the axis number in the associated
2279b877906bSopenharmony_ci	axis event.
2280b877906bSopenharmony_ci
2281b877906bSopenharmony_ci	The order of wl_pointer.axis_discrete and wl_pointer.axis_source is
2282b877906bSopenharmony_ci	not guaranteed.
2283b877906bSopenharmony_ci      </description>
2284b877906bSopenharmony_ci      <arg name="axis" type="uint" enum="axis" summary="axis type"/>
2285b877906bSopenharmony_ci      <arg name="discrete" type="int" summary="number of steps"/>
2286b877906bSopenharmony_ci    </event>
2287b877906bSopenharmony_ci
2288b877906bSopenharmony_ci    <event name="axis_value120" since="8">
2289b877906bSopenharmony_ci      <description summary="axis high-resolution scroll event">
2290b877906bSopenharmony_ci	Discrete high-resolution scroll information.
2291b877906bSopenharmony_ci
2292b877906bSopenharmony_ci	This event carries high-resolution wheel scroll information,
2293b877906bSopenharmony_ci	with each multiple of 120 representing one logical scroll step
2294b877906bSopenharmony_ci	(a wheel detent). For example, an axis_value120 of 30 is one quarter of
2295b877906bSopenharmony_ci	a logical scroll step in the positive direction, a value120 of
2296b877906bSopenharmony_ci	-240 are two logical scroll steps in the negative direction within the
2297b877906bSopenharmony_ci	same hardware event.
2298b877906bSopenharmony_ci	Clients that rely on discrete scrolling should accumulate the
2299b877906bSopenharmony_ci	value120 to multiples of 120 before processing the event.
2300b877906bSopenharmony_ci
2301b877906bSopenharmony_ci	The value120 must not be zero.
2302b877906bSopenharmony_ci
2303b877906bSopenharmony_ci	This event replaces the wl_pointer.axis_discrete event in clients
2304b877906bSopenharmony_ci	supporting wl_pointer version 8 or later.
2305b877906bSopenharmony_ci
2306b877906bSopenharmony_ci	Where a wl_pointer.axis_source event occurs in the same
2307b877906bSopenharmony_ci	wl_pointer.frame, the axis source applies to this event.
2308b877906bSopenharmony_ci
2309b877906bSopenharmony_ci	The order of wl_pointer.axis_value120 and wl_pointer.axis_source is
2310b877906bSopenharmony_ci	not guaranteed.
2311b877906bSopenharmony_ci      </description>
2312b877906bSopenharmony_ci      <arg name="axis" type="uint" enum="axis" summary="axis type"/>
2313b877906bSopenharmony_ci      <arg name="value120" type="int" summary="scroll distance as fraction of 120"/>
2314b877906bSopenharmony_ci    </event>
2315b877906bSopenharmony_ci
2316b877906bSopenharmony_ci    <!-- Version 9 additions -->
2317b877906bSopenharmony_ci
2318b877906bSopenharmony_ci    <enum name="axis_relative_direction">
2319b877906bSopenharmony_ci      <description summary="axis relative direction">
2320b877906bSopenharmony_ci	This specifies the direction of the physical motion that caused a
2321b877906bSopenharmony_ci	wl_pointer.axis event, relative to the wl_pointer.axis direction.
2322b877906bSopenharmony_ci      </description>
2323b877906bSopenharmony_ci      <entry name="identical" value="0"
2324b877906bSopenharmony_ci	  summary="physical motion matches axis direction"/>
2325b877906bSopenharmony_ci      <entry name="inverted" value="1"
2326b877906bSopenharmony_ci	  summary="physical motion is the inverse of the axis direction"/>
2327b877906bSopenharmony_ci    </enum>
2328b877906bSopenharmony_ci
2329b877906bSopenharmony_ci    <event name="axis_relative_direction" since="9">
2330b877906bSopenharmony_ci      <description summary="axis relative physical direction event">
2331b877906bSopenharmony_ci	Relative directional information of the entity causing the axis
2332b877906bSopenharmony_ci	motion.
2333b877906bSopenharmony_ci
2334b877906bSopenharmony_ci	For a wl_pointer.axis event, the wl_pointer.axis_relative_direction
2335b877906bSopenharmony_ci	event specifies the movement direction of the entity causing the
2336b877906bSopenharmony_ci	wl_pointer.axis event. For example:
2337b877906bSopenharmony_ci	- if a user's fingers on a touchpad move down and this
2338b877906bSopenharmony_ci	  causes a wl_pointer.axis vertical_scroll down event, the physical
2339b877906bSopenharmony_ci	  direction is 'identical'
2340b877906bSopenharmony_ci	- if a user's fingers on a touchpad move down and this causes a
2341b877906bSopenharmony_ci	  wl_pointer.axis vertical_scroll up scroll up event ('natural
2342b877906bSopenharmony_ci	  scrolling'), the physical direction is 'inverted'.
2343b877906bSopenharmony_ci
2344b877906bSopenharmony_ci	A client may use this information to adjust scroll motion of
2345b877906bSopenharmony_ci	components. Specifically, enabling natural scrolling causes the
2346b877906bSopenharmony_ci	content to change direction compared to traditional scrolling.
2347b877906bSopenharmony_ci	Some widgets like volume control sliders should usually match the
2348b877906bSopenharmony_ci	physical direction regardless of whether natural scrolling is
2349b877906bSopenharmony_ci	active. This event enables clients to match the scroll direction of
2350b877906bSopenharmony_ci	a widget to the physical direction.
2351b877906bSopenharmony_ci
2352b877906bSopenharmony_ci	This event does not occur on its own, it is coupled with a
2353b877906bSopenharmony_ci	wl_pointer.axis event that represents this axis value.
2354b877906bSopenharmony_ci	The protocol guarantees that each axis_relative_direction event is
2355b877906bSopenharmony_ci	always followed by exactly one axis event with the same
2356b877906bSopenharmony_ci	axis number within the same wl_pointer.frame. Note that the protocol
2357b877906bSopenharmony_ci	allows for other events to occur between the axis_relative_direction
2358b877906bSopenharmony_ci	and its coupled axis event.
2359b877906bSopenharmony_ci
2360b877906bSopenharmony_ci	The axis number is identical to the axis number in the associated
2361b877906bSopenharmony_ci	axis event.
2362b877906bSopenharmony_ci
2363b877906bSopenharmony_ci	The order of wl_pointer.axis_relative_direction,
2364b877906bSopenharmony_ci	wl_pointer.axis_discrete and wl_pointer.axis_source is not
2365b877906bSopenharmony_ci	guaranteed.
2366b877906bSopenharmony_ci      </description>
2367b877906bSopenharmony_ci      <arg name="axis" type="uint" enum="axis" summary="axis type"/>
2368b877906bSopenharmony_ci      <arg name="direction" type="uint" enum="axis_relative_direction"
2369b877906bSopenharmony_ci	  summary="physical direction relative to axis motion"/>
2370b877906bSopenharmony_ci    </event>
2371b877906bSopenharmony_ci  </interface>
2372b877906bSopenharmony_ci
2373b877906bSopenharmony_ci  <interface name="wl_keyboard" version="9">
2374b877906bSopenharmony_ci    <description summary="keyboard input device">
2375b877906bSopenharmony_ci      The wl_keyboard interface represents one or more keyboards
2376b877906bSopenharmony_ci      associated with a seat.
2377b877906bSopenharmony_ci    </description>
2378b877906bSopenharmony_ci
2379b877906bSopenharmony_ci    <enum name="keymap_format">
2380b877906bSopenharmony_ci      <description summary="keyboard mapping format">
2381b877906bSopenharmony_ci	This specifies the format of the keymap provided to the
2382b877906bSopenharmony_ci	client with the wl_keyboard.keymap event.
2383b877906bSopenharmony_ci      </description>
2384b877906bSopenharmony_ci      <entry name="no_keymap" value="0"
2385b877906bSopenharmony_ci	     summary="no keymap; client must understand how to interpret the raw keycode"/>
2386b877906bSopenharmony_ci      <entry name="xkb_v1" value="1"
2387b877906bSopenharmony_ci	     summary="libxkbcommon compatible, null-terminated string; to determine the xkb keycode, clients must add 8 to the key event keycode"/>
2388b877906bSopenharmony_ci    </enum>
2389b877906bSopenharmony_ci
2390b877906bSopenharmony_ci    <event name="keymap">
2391b877906bSopenharmony_ci      <description summary="keyboard mapping">
2392b877906bSopenharmony_ci	This event provides a file descriptor to the client which can be
2393b877906bSopenharmony_ci	memory-mapped in read-only mode to provide a keyboard mapping
2394b877906bSopenharmony_ci	description.
2395b877906bSopenharmony_ci
2396b877906bSopenharmony_ci	From version 7 onwards, the fd must be mapped with MAP_PRIVATE by
2397b877906bSopenharmony_ci	the recipient, as MAP_SHARED may fail.
2398b877906bSopenharmony_ci      </description>
2399b877906bSopenharmony_ci      <arg name="format" type="uint" enum="keymap_format" summary="keymap format"/>
2400b877906bSopenharmony_ci      <arg name="fd" type="fd" summary="keymap file descriptor"/>
2401b877906bSopenharmony_ci      <arg name="size" type="uint" summary="keymap size, in bytes"/>
2402b877906bSopenharmony_ci    </event>
2403b877906bSopenharmony_ci
2404b877906bSopenharmony_ci    <event name="enter">
2405b877906bSopenharmony_ci      <description summary="enter event">
2406b877906bSopenharmony_ci	Notification that this seat's keyboard focus is on a certain
2407b877906bSopenharmony_ci	surface.
2408b877906bSopenharmony_ci
2409b877906bSopenharmony_ci	The compositor must send the wl_keyboard.modifiers event after this
2410b877906bSopenharmony_ci	event.
2411b877906bSopenharmony_ci      </description>
2412b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the enter event"/>
2413b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" summary="surface gaining keyboard focus"/>
2414b877906bSopenharmony_ci      <arg name="keys" type="array" summary="the currently pressed keys"/>
2415b877906bSopenharmony_ci    </event>
2416b877906bSopenharmony_ci
2417b877906bSopenharmony_ci    <event name="leave">
2418b877906bSopenharmony_ci      <description summary="leave event">
2419b877906bSopenharmony_ci	Notification that this seat's keyboard focus is no longer on
2420b877906bSopenharmony_ci	a certain surface.
2421b877906bSopenharmony_ci
2422b877906bSopenharmony_ci	The leave notification is sent before the enter notification
2423b877906bSopenharmony_ci	for the new focus.
2424b877906bSopenharmony_ci
2425b877906bSopenharmony_ci	After this event client must assume that all keys, including modifiers,
2426b877906bSopenharmony_ci	are lifted and also it must stop key repeating if there's some going on.
2427b877906bSopenharmony_ci      </description>
2428b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the leave event"/>
2429b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" summary="surface that lost keyboard focus"/>
2430b877906bSopenharmony_ci    </event>
2431b877906bSopenharmony_ci
2432b877906bSopenharmony_ci    <enum name="key_state">
2433b877906bSopenharmony_ci      <description summary="physical key state">
2434b877906bSopenharmony_ci	Describes the physical state of a key that produced the key event.
2435b877906bSopenharmony_ci      </description>
2436b877906bSopenharmony_ci      <entry name="released" value="0" summary="key is not pressed"/>
2437b877906bSopenharmony_ci      <entry name="pressed" value="1" summary="key is pressed"/>
2438b877906bSopenharmony_ci    </enum>
2439b877906bSopenharmony_ci
2440b877906bSopenharmony_ci    <event name="key">
2441b877906bSopenharmony_ci      <description summary="key event">
2442b877906bSopenharmony_ci	A key was pressed or released.
2443b877906bSopenharmony_ci	The time argument is a timestamp with millisecond
2444b877906bSopenharmony_ci	granularity, with an undefined base.
2445b877906bSopenharmony_ci
2446b877906bSopenharmony_ci	The key is a platform-specific key code that can be interpreted
2447b877906bSopenharmony_ci	by feeding it to the keyboard mapping (see the keymap event).
2448b877906bSopenharmony_ci
2449b877906bSopenharmony_ci	If this event produces a change in modifiers, then the resulting
2450b877906bSopenharmony_ci	wl_keyboard.modifiers event must be sent after this event.
2451b877906bSopenharmony_ci      </description>
2452b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the key event"/>
2453b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2454b877906bSopenharmony_ci      <arg name="key" type="uint" summary="key that produced the event"/>
2455b877906bSopenharmony_ci      <arg name="state" type="uint" enum="key_state" summary="physical state of the key"/>
2456b877906bSopenharmony_ci    </event>
2457b877906bSopenharmony_ci
2458b877906bSopenharmony_ci    <event name="modifiers">
2459b877906bSopenharmony_ci      <description summary="modifier and group state">
2460b877906bSopenharmony_ci	Notifies clients that the modifier and/or group state has
2461b877906bSopenharmony_ci	changed, and it should update its local state.
2462b877906bSopenharmony_ci      </description>
2463b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the modifiers event"/>
2464b877906bSopenharmony_ci      <arg name="mods_depressed" type="uint" summary="depressed modifiers"/>
2465b877906bSopenharmony_ci      <arg name="mods_latched" type="uint" summary="latched modifiers"/>
2466b877906bSopenharmony_ci      <arg name="mods_locked" type="uint" summary="locked modifiers"/>
2467b877906bSopenharmony_ci      <arg name="group" type="uint" summary="keyboard layout"/>
2468b877906bSopenharmony_ci    </event>
2469b877906bSopenharmony_ci
2470b877906bSopenharmony_ci    <!-- Version 3 additions -->
2471b877906bSopenharmony_ci
2472b877906bSopenharmony_ci    <request name="release" type="destructor" since="3">
2473b877906bSopenharmony_ci      <description summary="release the keyboard object"/>
2474b877906bSopenharmony_ci    </request>
2475b877906bSopenharmony_ci
2476b877906bSopenharmony_ci    <!-- Version 4 additions -->
2477b877906bSopenharmony_ci
2478b877906bSopenharmony_ci    <event name="repeat_info" since="4">
2479b877906bSopenharmony_ci      <description summary="repeat rate and delay">
2480b877906bSopenharmony_ci	Informs the client about the keyboard's repeat rate and delay.
2481b877906bSopenharmony_ci
2482b877906bSopenharmony_ci	This event is sent as soon as the wl_keyboard object has been created,
2483b877906bSopenharmony_ci	and is guaranteed to be received by the client before any key press
2484b877906bSopenharmony_ci	event.
2485b877906bSopenharmony_ci
2486b877906bSopenharmony_ci	Negative values for either rate or delay are illegal. A rate of zero
2487b877906bSopenharmony_ci	will disable any repeating (regardless of the value of delay).
2488b877906bSopenharmony_ci
2489b877906bSopenharmony_ci	This event can be sent later on as well with a new value if necessary,
2490b877906bSopenharmony_ci	so clients should continue listening for the event past the creation
2491b877906bSopenharmony_ci	of wl_keyboard.
2492b877906bSopenharmony_ci      </description>
2493b877906bSopenharmony_ci      <arg name="rate" type="int"
2494b877906bSopenharmony_ci	   summary="the rate of repeating keys in characters per second"/>
2495b877906bSopenharmony_ci      <arg name="delay" type="int"
2496b877906bSopenharmony_ci	   summary="delay in milliseconds since key down until repeating starts"/>
2497b877906bSopenharmony_ci    </event>
2498b877906bSopenharmony_ci  </interface>
2499b877906bSopenharmony_ci
2500b877906bSopenharmony_ci  <interface name="wl_touch" version="9">
2501b877906bSopenharmony_ci    <description summary="touchscreen input device">
2502b877906bSopenharmony_ci      The wl_touch interface represents a touchscreen
2503b877906bSopenharmony_ci      associated with a seat.
2504b877906bSopenharmony_ci
2505b877906bSopenharmony_ci      Touch interactions can consist of one or more contacts.
2506b877906bSopenharmony_ci      For each contact, a series of events is generated, starting
2507b877906bSopenharmony_ci      with a down event, followed by zero or more motion events,
2508b877906bSopenharmony_ci      and ending with an up event. Events relating to the same
2509b877906bSopenharmony_ci      contact point can be identified by the ID of the sequence.
2510b877906bSopenharmony_ci    </description>
2511b877906bSopenharmony_ci
2512b877906bSopenharmony_ci    <event name="down">
2513b877906bSopenharmony_ci      <description summary="touch down event and beginning of a touch sequence">
2514b877906bSopenharmony_ci	A new touch point has appeared on the surface. This touch point is
2515b877906bSopenharmony_ci	assigned a unique ID. Future events from this touch point reference
2516b877906bSopenharmony_ci	this ID. The ID ceases to be valid after a touch up event and may be
2517b877906bSopenharmony_ci	reused in the future.
2518b877906bSopenharmony_ci      </description>
2519b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the touch down event"/>
2520b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2521b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface" summary="surface touched"/>
2522b877906bSopenharmony_ci      <arg name="id" type="int" summary="the unique ID of this touch point"/>
2523b877906bSopenharmony_ci      <arg name="x" type="fixed" summary="surface-local x coordinate"/>
2524b877906bSopenharmony_ci      <arg name="y" type="fixed" summary="surface-local y coordinate"/>
2525b877906bSopenharmony_ci    </event>
2526b877906bSopenharmony_ci
2527b877906bSopenharmony_ci    <event name="up">
2528b877906bSopenharmony_ci      <description summary="end of a touch event sequence">
2529b877906bSopenharmony_ci	The touch point has disappeared. No further events will be sent for
2530b877906bSopenharmony_ci	this touch point and the touch point's ID is released and may be
2531b877906bSopenharmony_ci	reused in a future touch down event.
2532b877906bSopenharmony_ci      </description>
2533b877906bSopenharmony_ci      <arg name="serial" type="uint" summary="serial number of the touch up event"/>
2534b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2535b877906bSopenharmony_ci      <arg name="id" type="int" summary="the unique ID of this touch point"/>
2536b877906bSopenharmony_ci    </event>
2537b877906bSopenharmony_ci
2538b877906bSopenharmony_ci    <event name="motion">
2539b877906bSopenharmony_ci      <description summary="update of touch point coordinates">
2540b877906bSopenharmony_ci	A touch point has changed coordinates.
2541b877906bSopenharmony_ci      </description>
2542b877906bSopenharmony_ci      <arg name="time" type="uint" summary="timestamp with millisecond granularity"/>
2543b877906bSopenharmony_ci      <arg name="id" type="int" summary="the unique ID of this touch point"/>
2544b877906bSopenharmony_ci      <arg name="x" type="fixed" summary="surface-local x coordinate"/>
2545b877906bSopenharmony_ci      <arg name="y" type="fixed" summary="surface-local y coordinate"/>
2546b877906bSopenharmony_ci    </event>
2547b877906bSopenharmony_ci
2548b877906bSopenharmony_ci    <event name="frame">
2549b877906bSopenharmony_ci      <description summary="end of touch frame event">
2550b877906bSopenharmony_ci	Indicates the end of a set of events that logically belong together.
2551b877906bSopenharmony_ci	A client is expected to accumulate the data in all events within the
2552b877906bSopenharmony_ci	frame before proceeding.
2553b877906bSopenharmony_ci
2554b877906bSopenharmony_ci	A wl_touch.frame terminates at least one event but otherwise no
2555b877906bSopenharmony_ci	guarantee is provided about the set of events within a frame. A client
2556b877906bSopenharmony_ci	must assume that any state not updated in a frame is unchanged from the
2557b877906bSopenharmony_ci	previously known state.
2558b877906bSopenharmony_ci      </description>
2559b877906bSopenharmony_ci    </event>
2560b877906bSopenharmony_ci
2561b877906bSopenharmony_ci    <event name="cancel">
2562b877906bSopenharmony_ci      <description summary="touch session cancelled">
2563b877906bSopenharmony_ci	Sent if the compositor decides the touch stream is a global
2564b877906bSopenharmony_ci	gesture. No further events are sent to the clients from that
2565b877906bSopenharmony_ci	particular gesture. Touch cancellation applies to all touch points
2566b877906bSopenharmony_ci	currently active on this client's surface. The client is
2567b877906bSopenharmony_ci	responsible for finalizing the touch points, future touch points on
2568b877906bSopenharmony_ci	this surface may reuse the touch point ID.
2569b877906bSopenharmony_ci      </description>
2570b877906bSopenharmony_ci    </event>
2571b877906bSopenharmony_ci
2572b877906bSopenharmony_ci    <!-- Version 3 additions -->
2573b877906bSopenharmony_ci
2574b877906bSopenharmony_ci    <request name="release" type="destructor" since="3">
2575b877906bSopenharmony_ci      <description summary="release the touch object"/>
2576b877906bSopenharmony_ci    </request>
2577b877906bSopenharmony_ci
2578b877906bSopenharmony_ci    <!-- Version 6 additions -->
2579b877906bSopenharmony_ci
2580b877906bSopenharmony_ci    <event name="shape" since="6">
2581b877906bSopenharmony_ci      <description summary="update shape of touch point">
2582b877906bSopenharmony_ci	Sent when a touchpoint has changed its shape.
2583b877906bSopenharmony_ci
2584b877906bSopenharmony_ci	This event does not occur on its own. It is sent before a
2585b877906bSopenharmony_ci	wl_touch.frame event and carries the new shape information for
2586b877906bSopenharmony_ci	any previously reported, or new touch points of that frame.
2587b877906bSopenharmony_ci
2588b877906bSopenharmony_ci	Other events describing the touch point such as wl_touch.down,
2589b877906bSopenharmony_ci	wl_touch.motion or wl_touch.orientation may be sent within the
2590b877906bSopenharmony_ci	same wl_touch.frame. A client should treat these events as a single
2591b877906bSopenharmony_ci	logical touch point update. The order of wl_touch.shape,
2592b877906bSopenharmony_ci	wl_touch.orientation and wl_touch.motion is not guaranteed.
2593b877906bSopenharmony_ci	A wl_touch.down event is guaranteed to occur before the first
2594b877906bSopenharmony_ci	wl_touch.shape event for this touch ID but both events may occur within
2595b877906bSopenharmony_ci	the same wl_touch.frame.
2596b877906bSopenharmony_ci
2597b877906bSopenharmony_ci	A touchpoint shape is approximated by an ellipse through the major and
2598b877906bSopenharmony_ci	minor axis length. The major axis length describes the longer diameter
2599b877906bSopenharmony_ci	of the ellipse, while the minor axis length describes the shorter
2600b877906bSopenharmony_ci	diameter. Major and minor are orthogonal and both are specified in
2601b877906bSopenharmony_ci	surface-local coordinates. The center of the ellipse is always at the
2602b877906bSopenharmony_ci	touchpoint location as reported by wl_touch.down or wl_touch.move.
2603b877906bSopenharmony_ci
2604b877906bSopenharmony_ci	This event is only sent by the compositor if the touch device supports
2605b877906bSopenharmony_ci	shape reports. The client has to make reasonable assumptions about the
2606b877906bSopenharmony_ci	shape if it did not receive this event.
2607b877906bSopenharmony_ci      </description>
2608b877906bSopenharmony_ci      <arg name="id" type="int" summary="the unique ID of this touch point"/>
2609b877906bSopenharmony_ci      <arg name="major" type="fixed" summary="length of the major axis in surface-local coordinates"/>
2610b877906bSopenharmony_ci      <arg name="minor" type="fixed" summary="length of the minor axis in surface-local coordinates"/>
2611b877906bSopenharmony_ci    </event>
2612b877906bSopenharmony_ci
2613b877906bSopenharmony_ci    <event name="orientation" since="6">
2614b877906bSopenharmony_ci      <description summary="update orientation of touch point">
2615b877906bSopenharmony_ci	Sent when a touchpoint has changed its orientation.
2616b877906bSopenharmony_ci
2617b877906bSopenharmony_ci	This event does not occur on its own. It is sent before a
2618b877906bSopenharmony_ci	wl_touch.frame event and carries the new shape information for
2619b877906bSopenharmony_ci	any previously reported, or new touch points of that frame.
2620b877906bSopenharmony_ci
2621b877906bSopenharmony_ci	Other events describing the touch point such as wl_touch.down,
2622b877906bSopenharmony_ci	wl_touch.motion or wl_touch.shape may be sent within the
2623b877906bSopenharmony_ci	same wl_touch.frame. A client should treat these events as a single
2624b877906bSopenharmony_ci	logical touch point update. The order of wl_touch.shape,
2625b877906bSopenharmony_ci	wl_touch.orientation and wl_touch.motion is not guaranteed.
2626b877906bSopenharmony_ci	A wl_touch.down event is guaranteed to occur before the first
2627b877906bSopenharmony_ci	wl_touch.orientation event for this touch ID but both events may occur
2628b877906bSopenharmony_ci	within the same wl_touch.frame.
2629b877906bSopenharmony_ci
2630b877906bSopenharmony_ci	The orientation describes the clockwise angle of a touchpoint's major
2631b877906bSopenharmony_ci	axis to the positive surface y-axis and is normalized to the -180 to
2632b877906bSopenharmony_ci	+180 degree range. The granularity of orientation depends on the touch
2633b877906bSopenharmony_ci	device, some devices only support binary rotation values between 0 and
2634b877906bSopenharmony_ci	90 degrees.
2635b877906bSopenharmony_ci
2636b877906bSopenharmony_ci	This event is only sent by the compositor if the touch device supports
2637b877906bSopenharmony_ci	orientation reports.
2638b877906bSopenharmony_ci      </description>
2639b877906bSopenharmony_ci      <arg name="id" type="int" summary="the unique ID of this touch point"/>
2640b877906bSopenharmony_ci      <arg name="orientation" type="fixed" summary="angle between major axis and positive surface y-axis in degrees"/>
2641b877906bSopenharmony_ci    </event>
2642b877906bSopenharmony_ci  </interface>
2643b877906bSopenharmony_ci
2644b877906bSopenharmony_ci  <interface name="wl_output" version="4">
2645b877906bSopenharmony_ci    <description summary="compositor output region">
2646b877906bSopenharmony_ci      An output describes part of the compositor geometry.  The
2647b877906bSopenharmony_ci      compositor works in the 'compositor coordinate system' and an
2648b877906bSopenharmony_ci      output corresponds to a rectangular area in that space that is
2649b877906bSopenharmony_ci      actually visible.  This typically corresponds to a monitor that
2650b877906bSopenharmony_ci      displays part of the compositor space.  This object is published
2651b877906bSopenharmony_ci      as global during start up, or when a monitor is hotplugged.
2652b877906bSopenharmony_ci    </description>
2653b877906bSopenharmony_ci
2654b877906bSopenharmony_ci    <enum name="subpixel">
2655b877906bSopenharmony_ci      <description summary="subpixel geometry information">
2656b877906bSopenharmony_ci	This enumeration describes how the physical
2657b877906bSopenharmony_ci	pixels on an output are laid out.
2658b877906bSopenharmony_ci      </description>
2659b877906bSopenharmony_ci      <entry name="unknown" value="0" summary="unknown geometry"/>
2660b877906bSopenharmony_ci      <entry name="none" value="1" summary="no geometry"/>
2661b877906bSopenharmony_ci      <entry name="horizontal_rgb" value="2" summary="horizontal RGB"/>
2662b877906bSopenharmony_ci      <entry name="horizontal_bgr" value="3" summary="horizontal BGR"/>
2663b877906bSopenharmony_ci      <entry name="vertical_rgb" value="4" summary="vertical RGB"/>
2664b877906bSopenharmony_ci      <entry name="vertical_bgr" value="5" summary="vertical BGR"/>
2665b877906bSopenharmony_ci    </enum>
2666b877906bSopenharmony_ci
2667b877906bSopenharmony_ci    <enum name="transform">
2668b877906bSopenharmony_ci      <description summary="transform from framebuffer to output">
2669b877906bSopenharmony_ci	This describes the transform that a compositor will apply to a
2670b877906bSopenharmony_ci	surface to compensate for the rotation or mirroring of an
2671b877906bSopenharmony_ci	output device.
2672b877906bSopenharmony_ci
2673b877906bSopenharmony_ci	The flipped values correspond to an initial flip around a
2674b877906bSopenharmony_ci	vertical axis followed by rotation.
2675b877906bSopenharmony_ci
2676b877906bSopenharmony_ci	The purpose is mainly to allow clients to render accordingly and
2677b877906bSopenharmony_ci	tell the compositor, so that for fullscreen surfaces, the
2678b877906bSopenharmony_ci	compositor will still be able to scan out directly from client
2679b877906bSopenharmony_ci	surfaces.
2680b877906bSopenharmony_ci      </description>
2681b877906bSopenharmony_ci      <entry name="normal" value="0" summary="no transform"/>
2682b877906bSopenharmony_ci      <entry name="90" value="1" summary="90 degrees counter-clockwise"/>
2683b877906bSopenharmony_ci      <entry name="180" value="2" summary="180 degrees counter-clockwise"/>
2684b877906bSopenharmony_ci      <entry name="270" value="3" summary="270 degrees counter-clockwise"/>
2685b877906bSopenharmony_ci      <entry name="flipped" value="4" summary="180 degree flip around a vertical axis"/>
2686b877906bSopenharmony_ci      <entry name="flipped_90" value="5" summary="flip and rotate 90 degrees counter-clockwise"/>
2687b877906bSopenharmony_ci      <entry name="flipped_180" value="6" summary="flip and rotate 180 degrees counter-clockwise"/>
2688b877906bSopenharmony_ci      <entry name="flipped_270" value="7" summary="flip and rotate 270 degrees counter-clockwise"/>
2689b877906bSopenharmony_ci    </enum>
2690b877906bSopenharmony_ci
2691b877906bSopenharmony_ci    <event name="geometry">
2692b877906bSopenharmony_ci      <description summary="properties of the output">
2693b877906bSopenharmony_ci	The geometry event describes geometric properties of the output.
2694b877906bSopenharmony_ci	The event is sent when binding to the output object and whenever
2695b877906bSopenharmony_ci	any of the properties change.
2696b877906bSopenharmony_ci
2697b877906bSopenharmony_ci	The physical size can be set to zero if it doesn't make sense for this
2698b877906bSopenharmony_ci	output (e.g. for projectors or virtual outputs).
2699b877906bSopenharmony_ci
2700b877906bSopenharmony_ci	The geometry event will be followed by a done event (starting from
2701b877906bSopenharmony_ci	version 2).
2702b877906bSopenharmony_ci
2703b877906bSopenharmony_ci	Note: wl_output only advertises partial information about the output
2704b877906bSopenharmony_ci	position and identification. Some compositors, for instance those not
2705b877906bSopenharmony_ci	implementing a desktop-style output layout or those exposing virtual
2706b877906bSopenharmony_ci	outputs, might fake this information. Instead of using x and y, clients
2707b877906bSopenharmony_ci	should use xdg_output.logical_position. Instead of using make and model,
2708b877906bSopenharmony_ci	clients should use name and description.
2709b877906bSopenharmony_ci      </description>
2710b877906bSopenharmony_ci      <arg name="x" type="int"
2711b877906bSopenharmony_ci	   summary="x position within the global compositor space"/>
2712b877906bSopenharmony_ci      <arg name="y" type="int"
2713b877906bSopenharmony_ci	   summary="y position within the global compositor space"/>
2714b877906bSopenharmony_ci      <arg name="physical_width" type="int"
2715b877906bSopenharmony_ci	   summary="width in millimeters of the output"/>
2716b877906bSopenharmony_ci      <arg name="physical_height" type="int"
2717b877906bSopenharmony_ci	   summary="height in millimeters of the output"/>
2718b877906bSopenharmony_ci      <arg name="subpixel" type="int" enum="subpixel"
2719b877906bSopenharmony_ci	   summary="subpixel orientation of the output"/>
2720b877906bSopenharmony_ci      <arg name="make" type="string"
2721b877906bSopenharmony_ci	   summary="textual description of the manufacturer"/>
2722b877906bSopenharmony_ci      <arg name="model" type="string"
2723b877906bSopenharmony_ci	   summary="textual description of the model"/>
2724b877906bSopenharmony_ci      <arg name="transform" type="int" enum="transform"
2725b877906bSopenharmony_ci	   summary="transform that maps framebuffer to output"/>
2726b877906bSopenharmony_ci    </event>
2727b877906bSopenharmony_ci
2728b877906bSopenharmony_ci    <enum name="mode" bitfield="true">
2729b877906bSopenharmony_ci      <description summary="mode information">
2730b877906bSopenharmony_ci	These flags describe properties of an output mode.
2731b877906bSopenharmony_ci	They are used in the flags bitfield of the mode event.
2732b877906bSopenharmony_ci      </description>
2733b877906bSopenharmony_ci      <entry name="current" value="0x1"
2734b877906bSopenharmony_ci	     summary="indicates this is the current mode"/>
2735b877906bSopenharmony_ci      <entry name="preferred" value="0x2"
2736b877906bSopenharmony_ci	     summary="indicates this is the preferred mode"/>
2737b877906bSopenharmony_ci    </enum>
2738b877906bSopenharmony_ci
2739b877906bSopenharmony_ci    <event name="mode">
2740b877906bSopenharmony_ci      <description summary="advertise available modes for the output">
2741b877906bSopenharmony_ci	The mode event describes an available mode for the output.
2742b877906bSopenharmony_ci
2743b877906bSopenharmony_ci	The event is sent when binding to the output object and there
2744b877906bSopenharmony_ci	will always be one mode, the current mode.  The event is sent
2745b877906bSopenharmony_ci	again if an output changes mode, for the mode that is now
2746b877906bSopenharmony_ci	current.  In other words, the current mode is always the last
2747b877906bSopenharmony_ci	mode that was received with the current flag set.
2748b877906bSopenharmony_ci
2749b877906bSopenharmony_ci	Non-current modes are deprecated. A compositor can decide to only
2750b877906bSopenharmony_ci	advertise the current mode and never send other modes. Clients
2751b877906bSopenharmony_ci	should not rely on non-current modes.
2752b877906bSopenharmony_ci
2753b877906bSopenharmony_ci	The size of a mode is given in physical hardware units of
2754b877906bSopenharmony_ci	the output device. This is not necessarily the same as
2755b877906bSopenharmony_ci	the output size in the global compositor space. For instance,
2756b877906bSopenharmony_ci	the output may be scaled, as described in wl_output.scale,
2757b877906bSopenharmony_ci	or transformed, as described in wl_output.transform. Clients
2758b877906bSopenharmony_ci	willing to retrieve the output size in the global compositor
2759b877906bSopenharmony_ci	space should use xdg_output.logical_size instead.
2760b877906bSopenharmony_ci
2761b877906bSopenharmony_ci	The vertical refresh rate can be set to zero if it doesn't make
2762b877906bSopenharmony_ci	sense for this output (e.g. for virtual outputs).
2763b877906bSopenharmony_ci
2764b877906bSopenharmony_ci	The mode event will be followed by a done event (starting from
2765b877906bSopenharmony_ci	version 2).
2766b877906bSopenharmony_ci
2767b877906bSopenharmony_ci	Clients should not use the refresh rate to schedule frames. Instead,
2768b877906bSopenharmony_ci	they should use the wl_surface.frame event or the presentation-time
2769b877906bSopenharmony_ci	protocol.
2770b877906bSopenharmony_ci
2771b877906bSopenharmony_ci	Note: this information is not always meaningful for all outputs. Some
2772b877906bSopenharmony_ci	compositors, such as those exposing virtual outputs, might fake the
2773b877906bSopenharmony_ci	refresh rate or the size.
2774b877906bSopenharmony_ci      </description>
2775b877906bSopenharmony_ci      <arg name="flags" type="uint" enum="mode" summary="bitfield of mode flags"/>
2776b877906bSopenharmony_ci      <arg name="width" type="int" summary="width of the mode in hardware units"/>
2777b877906bSopenharmony_ci      <arg name="height" type="int" summary="height of the mode in hardware units"/>
2778b877906bSopenharmony_ci      <arg name="refresh" type="int" summary="vertical refresh rate in mHz"/>
2779b877906bSopenharmony_ci    </event>
2780b877906bSopenharmony_ci
2781b877906bSopenharmony_ci    <!-- Version 2 additions -->
2782b877906bSopenharmony_ci
2783b877906bSopenharmony_ci    <event name="done" since="2">
2784b877906bSopenharmony_ci      <description summary="sent all information about output">
2785b877906bSopenharmony_ci	This event is sent after all other properties have been
2786b877906bSopenharmony_ci	sent after binding to the output object and after any
2787b877906bSopenharmony_ci	other property changes done after that. This allows
2788b877906bSopenharmony_ci	changes to the output properties to be seen as
2789b877906bSopenharmony_ci	atomic, even if they happen via multiple events.
2790b877906bSopenharmony_ci      </description>
2791b877906bSopenharmony_ci    </event>
2792b877906bSopenharmony_ci
2793b877906bSopenharmony_ci    <event name="scale" since="2">
2794b877906bSopenharmony_ci      <description summary="output scaling properties">
2795b877906bSopenharmony_ci	This event contains scaling geometry information
2796b877906bSopenharmony_ci	that is not in the geometry event. It may be sent after
2797b877906bSopenharmony_ci	binding the output object or if the output scale changes
2798b877906bSopenharmony_ci	later. If it is not sent, the client should assume a
2799b877906bSopenharmony_ci	scale of 1.
2800b877906bSopenharmony_ci
2801b877906bSopenharmony_ci	A scale larger than 1 means that the compositor will
2802b877906bSopenharmony_ci	automatically scale surface buffers by this amount
2803b877906bSopenharmony_ci	when rendering. This is used for very high resolution
2804b877906bSopenharmony_ci	displays where applications rendering at the native
2805b877906bSopenharmony_ci	resolution would be too small to be legible.
2806b877906bSopenharmony_ci
2807b877906bSopenharmony_ci	It is intended that scaling aware clients track the
2808b877906bSopenharmony_ci	current output of a surface, and if it is on a scaled
2809b877906bSopenharmony_ci	output it should use wl_surface.set_buffer_scale with
2810b877906bSopenharmony_ci	the scale of the output. That way the compositor can
2811b877906bSopenharmony_ci	avoid scaling the surface, and the client can supply
2812b877906bSopenharmony_ci	a higher detail image.
2813b877906bSopenharmony_ci
2814b877906bSopenharmony_ci	The scale event will be followed by a done event.
2815b877906bSopenharmony_ci      </description>
2816b877906bSopenharmony_ci      <arg name="factor" type="int" summary="scaling factor of output"/>
2817b877906bSopenharmony_ci    </event>
2818b877906bSopenharmony_ci
2819b877906bSopenharmony_ci    <!-- Version 3 additions -->
2820b877906bSopenharmony_ci
2821b877906bSopenharmony_ci    <request name="release" type="destructor" since="3">
2822b877906bSopenharmony_ci      <description summary="release the output object">
2823b877906bSopenharmony_ci	Using this request a client can tell the server that it is not going to
2824b877906bSopenharmony_ci	use the output object anymore.
2825b877906bSopenharmony_ci      </description>
2826b877906bSopenharmony_ci    </request>
2827b877906bSopenharmony_ci
2828b877906bSopenharmony_ci    <!-- Version 4 additions -->
2829b877906bSopenharmony_ci
2830b877906bSopenharmony_ci    <event name="name" since="4">
2831b877906bSopenharmony_ci      <description summary="name of this output">
2832b877906bSopenharmony_ci	Many compositors will assign user-friendly names to their outputs, show
2833b877906bSopenharmony_ci	them to the user, allow the user to refer to an output, etc. The client
2834b877906bSopenharmony_ci	may wish to know this name as well to offer the user similar behaviors.
2835b877906bSopenharmony_ci
2836b877906bSopenharmony_ci	The name is a UTF-8 string with no convention defined for its contents.
2837b877906bSopenharmony_ci	Each name is unique among all wl_output globals. The name is only
2838b877906bSopenharmony_ci	guaranteed to be unique for the compositor instance.
2839b877906bSopenharmony_ci
2840b877906bSopenharmony_ci	The same output name is used for all clients for a given wl_output
2841b877906bSopenharmony_ci	global. Thus, the name can be shared across processes to refer to a
2842b877906bSopenharmony_ci	specific wl_output global.
2843b877906bSopenharmony_ci
2844b877906bSopenharmony_ci	The name is not guaranteed to be persistent across sessions, thus cannot
2845b877906bSopenharmony_ci	be used to reliably identify an output in e.g. configuration files.
2846b877906bSopenharmony_ci
2847b877906bSopenharmony_ci	Examples of names include 'HDMI-A-1', 'WL-1', 'X11-1', etc. However, do
2848b877906bSopenharmony_ci	not assume that the name is a reflection of an underlying DRM connector,
2849b877906bSopenharmony_ci	X11 connection, etc.
2850b877906bSopenharmony_ci
2851b877906bSopenharmony_ci	The name event is sent after binding the output object. This event is
2852b877906bSopenharmony_ci	only sent once per output object, and the name does not change over the
2853b877906bSopenharmony_ci	lifetime of the wl_output global.
2854b877906bSopenharmony_ci
2855b877906bSopenharmony_ci	Compositors may re-use the same output name if the wl_output global is
2856b877906bSopenharmony_ci	destroyed and re-created later. Compositors should avoid re-using the
2857b877906bSopenharmony_ci	same name if possible.
2858b877906bSopenharmony_ci
2859b877906bSopenharmony_ci	The name event will be followed by a done event.
2860b877906bSopenharmony_ci      </description>
2861b877906bSopenharmony_ci      <arg name="name" type="string" summary="output name"/>
2862b877906bSopenharmony_ci    </event>
2863b877906bSopenharmony_ci
2864b877906bSopenharmony_ci    <event name="description" since="4">
2865b877906bSopenharmony_ci      <description summary="human-readable description of this output">
2866b877906bSopenharmony_ci	Many compositors can produce human-readable descriptions of their
2867b877906bSopenharmony_ci	outputs. The client may wish to know this description as well, e.g. for
2868b877906bSopenharmony_ci	output selection purposes.
2869b877906bSopenharmony_ci
2870b877906bSopenharmony_ci	The description is a UTF-8 string with no convention defined for its
2871b877906bSopenharmony_ci	contents. The description is not guaranteed to be unique among all
2872b877906bSopenharmony_ci	wl_output globals. Examples might include 'Foocorp 11" Display' or
2873b877906bSopenharmony_ci	'Virtual X11 output via :1'.
2874b877906bSopenharmony_ci
2875b877906bSopenharmony_ci	The description event is sent after binding the output object and
2876b877906bSopenharmony_ci	whenever the description changes. The description is optional, and may
2877b877906bSopenharmony_ci	not be sent at all.
2878b877906bSopenharmony_ci
2879b877906bSopenharmony_ci	The description event will be followed by a done event.
2880b877906bSopenharmony_ci      </description>
2881b877906bSopenharmony_ci      <arg name="description" type="string" summary="output description"/>
2882b877906bSopenharmony_ci    </event>
2883b877906bSopenharmony_ci  </interface>
2884b877906bSopenharmony_ci
2885b877906bSopenharmony_ci  <interface name="wl_region" version="1">
2886b877906bSopenharmony_ci    <description summary="region interface">
2887b877906bSopenharmony_ci      A region object describes an area.
2888b877906bSopenharmony_ci
2889b877906bSopenharmony_ci      Region objects are used to describe the opaque and input
2890b877906bSopenharmony_ci      regions of a surface.
2891b877906bSopenharmony_ci    </description>
2892b877906bSopenharmony_ci
2893b877906bSopenharmony_ci    <request name="destroy" type="destructor">
2894b877906bSopenharmony_ci      <description summary="destroy region">
2895b877906bSopenharmony_ci	Destroy the region.  This will invalidate the object ID.
2896b877906bSopenharmony_ci      </description>
2897b877906bSopenharmony_ci    </request>
2898b877906bSopenharmony_ci
2899b877906bSopenharmony_ci    <request name="add">
2900b877906bSopenharmony_ci      <description summary="add rectangle to region">
2901b877906bSopenharmony_ci	Add the specified rectangle to the region.
2902b877906bSopenharmony_ci      </description>
2903b877906bSopenharmony_ci      <arg name="x" type="int" summary="region-local x coordinate"/>
2904b877906bSopenharmony_ci      <arg name="y" type="int" summary="region-local y coordinate"/>
2905b877906bSopenharmony_ci      <arg name="width" type="int" summary="rectangle width"/>
2906b877906bSopenharmony_ci      <arg name="height" type="int" summary="rectangle height"/>
2907b877906bSopenharmony_ci    </request>
2908b877906bSopenharmony_ci
2909b877906bSopenharmony_ci    <request name="subtract">
2910b877906bSopenharmony_ci      <description summary="subtract rectangle from region">
2911b877906bSopenharmony_ci	Subtract the specified rectangle from the region.
2912b877906bSopenharmony_ci      </description>
2913b877906bSopenharmony_ci      <arg name="x" type="int" summary="region-local x coordinate"/>
2914b877906bSopenharmony_ci      <arg name="y" type="int" summary="region-local y coordinate"/>
2915b877906bSopenharmony_ci      <arg name="width" type="int" summary="rectangle width"/>
2916b877906bSopenharmony_ci      <arg name="height" type="int" summary="rectangle height"/>
2917b877906bSopenharmony_ci    </request>
2918b877906bSopenharmony_ci  </interface>
2919b877906bSopenharmony_ci
2920b877906bSopenharmony_ci  <interface name="wl_subcompositor" version="1">
2921b877906bSopenharmony_ci    <description summary="sub-surface compositing">
2922b877906bSopenharmony_ci      The global interface exposing sub-surface compositing capabilities.
2923b877906bSopenharmony_ci      A wl_surface, that has sub-surfaces associated, is called the
2924b877906bSopenharmony_ci      parent surface. Sub-surfaces can be arbitrarily nested and create
2925b877906bSopenharmony_ci      a tree of sub-surfaces.
2926b877906bSopenharmony_ci
2927b877906bSopenharmony_ci      The root surface in a tree of sub-surfaces is the main
2928b877906bSopenharmony_ci      surface. The main surface cannot be a sub-surface, because
2929b877906bSopenharmony_ci      sub-surfaces must always have a parent.
2930b877906bSopenharmony_ci
2931b877906bSopenharmony_ci      A main surface with its sub-surfaces forms a (compound) window.
2932b877906bSopenharmony_ci      For window management purposes, this set of wl_surface objects is
2933b877906bSopenharmony_ci      to be considered as a single window, and it should also behave as
2934b877906bSopenharmony_ci      such.
2935b877906bSopenharmony_ci
2936b877906bSopenharmony_ci      The aim of sub-surfaces is to offload some of the compositing work
2937b877906bSopenharmony_ci      within a window from clients to the compositor. A prime example is
2938b877906bSopenharmony_ci      a video player with decorations and video in separate wl_surface
2939b877906bSopenharmony_ci      objects. This should allow the compositor to pass YUV video buffer
2940b877906bSopenharmony_ci      processing to dedicated overlay hardware when possible.
2941b877906bSopenharmony_ci    </description>
2942b877906bSopenharmony_ci
2943b877906bSopenharmony_ci    <request name="destroy" type="destructor">
2944b877906bSopenharmony_ci      <description summary="unbind from the subcompositor interface">
2945b877906bSopenharmony_ci	Informs the server that the client will not be using this
2946b877906bSopenharmony_ci	protocol object anymore. This does not affect any other
2947b877906bSopenharmony_ci	objects, wl_subsurface objects included.
2948b877906bSopenharmony_ci      </description>
2949b877906bSopenharmony_ci    </request>
2950b877906bSopenharmony_ci
2951b877906bSopenharmony_ci    <enum name="error">
2952b877906bSopenharmony_ci      <entry name="bad_surface" value="0"
2953b877906bSopenharmony_ci	     summary="the to-be sub-surface is invalid"/>
2954b877906bSopenharmony_ci      <entry name="bad_parent" value="1"
2955b877906bSopenharmony_ci	     summary="the to-be sub-surface parent is invalid"/>
2956b877906bSopenharmony_ci    </enum>
2957b877906bSopenharmony_ci
2958b877906bSopenharmony_ci    <request name="get_subsurface">
2959b877906bSopenharmony_ci      <description summary="give a surface the role sub-surface">
2960b877906bSopenharmony_ci	Create a sub-surface interface for the given surface, and
2961b877906bSopenharmony_ci	associate it with the given parent surface. This turns a
2962b877906bSopenharmony_ci	plain wl_surface into a sub-surface.
2963b877906bSopenharmony_ci
2964b877906bSopenharmony_ci	The to-be sub-surface must not already have another role, and it
2965b877906bSopenharmony_ci	must not have an existing wl_subsurface object. Otherwise the
2966b877906bSopenharmony_ci	bad_surface protocol error is raised.
2967b877906bSopenharmony_ci
2968b877906bSopenharmony_ci	Adding sub-surfaces to a parent is a double-buffered operation on the
2969b877906bSopenharmony_ci	parent (see wl_surface.commit). The effect of adding a sub-surface
2970b877906bSopenharmony_ci	becomes visible on the next time the state of the parent surface is
2971b877906bSopenharmony_ci	applied.
2972b877906bSopenharmony_ci
2973b877906bSopenharmony_ci	The parent surface must not be one of the child surface's descendants,
2974b877906bSopenharmony_ci	and the parent must be different from the child surface, otherwise the
2975b877906bSopenharmony_ci	bad_parent protocol error is raised.
2976b877906bSopenharmony_ci
2977b877906bSopenharmony_ci	This request modifies the behaviour of wl_surface.commit request on
2978b877906bSopenharmony_ci	the sub-surface, see the documentation on wl_subsurface interface.
2979b877906bSopenharmony_ci      </description>
2980b877906bSopenharmony_ci      <arg name="id" type="new_id" interface="wl_subsurface"
2981b877906bSopenharmony_ci	   summary="the new sub-surface object ID"/>
2982b877906bSopenharmony_ci      <arg name="surface" type="object" interface="wl_surface"
2983b877906bSopenharmony_ci	   summary="the surface to be turned into a sub-surface"/>
2984b877906bSopenharmony_ci      <arg name="parent" type="object" interface="wl_surface"
2985b877906bSopenharmony_ci	   summary="the parent surface"/>
2986b877906bSopenharmony_ci    </request>
2987b877906bSopenharmony_ci  </interface>
2988b877906bSopenharmony_ci
2989b877906bSopenharmony_ci  <interface name="wl_subsurface" version="1">
2990b877906bSopenharmony_ci    <description summary="sub-surface interface to a wl_surface">
2991b877906bSopenharmony_ci      An additional interface to a wl_surface object, which has been
2992b877906bSopenharmony_ci      made a sub-surface. A sub-surface has one parent surface. A
2993b877906bSopenharmony_ci      sub-surface's size and position are not limited to that of the parent.
2994b877906bSopenharmony_ci      Particularly, a sub-surface is not automatically clipped to its
2995b877906bSopenharmony_ci      parent's area.
2996b877906bSopenharmony_ci
2997b877906bSopenharmony_ci      A sub-surface becomes mapped, when a non-NULL wl_buffer is applied
2998b877906bSopenharmony_ci      and the parent surface is mapped. The order of which one happens
2999b877906bSopenharmony_ci      first is irrelevant. A sub-surface is hidden if the parent becomes
3000b877906bSopenharmony_ci      hidden, or if a NULL wl_buffer is applied. These rules apply
3001b877906bSopenharmony_ci      recursively through the tree of surfaces.
3002b877906bSopenharmony_ci
3003b877906bSopenharmony_ci      The behaviour of a wl_surface.commit request on a sub-surface
3004b877906bSopenharmony_ci      depends on the sub-surface's mode. The possible modes are
3005b877906bSopenharmony_ci      synchronized and desynchronized, see methods
3006b877906bSopenharmony_ci      wl_subsurface.set_sync and wl_subsurface.set_desync. Synchronized
3007b877906bSopenharmony_ci      mode caches the wl_surface state to be applied when the parent's
3008b877906bSopenharmony_ci      state gets applied, and desynchronized mode applies the pending
3009b877906bSopenharmony_ci      wl_surface state directly. A sub-surface is initially in the
3010b877906bSopenharmony_ci      synchronized mode.
3011b877906bSopenharmony_ci
3012b877906bSopenharmony_ci      Sub-surfaces also have another kind of state, which is managed by
3013b877906bSopenharmony_ci      wl_subsurface requests, as opposed to wl_surface requests. This
3014b877906bSopenharmony_ci      state includes the sub-surface position relative to the parent
3015b877906bSopenharmony_ci      surface (wl_subsurface.set_position), and the stacking order of
3016b877906bSopenharmony_ci      the parent and its sub-surfaces (wl_subsurface.place_above and
3017b877906bSopenharmony_ci      .place_below). This state is applied when the parent surface's
3018b877906bSopenharmony_ci      wl_surface state is applied, regardless of the sub-surface's mode.
3019b877906bSopenharmony_ci      As the exception, set_sync and set_desync are effective immediately.
3020b877906bSopenharmony_ci
3021b877906bSopenharmony_ci      The main surface can be thought to be always in desynchronized mode,
3022b877906bSopenharmony_ci      since it does not have a parent in the sub-surfaces sense.
3023b877906bSopenharmony_ci
3024b877906bSopenharmony_ci      Even if a sub-surface is in desynchronized mode, it will behave as
3025b877906bSopenharmony_ci      in synchronized mode, if its parent surface behaves as in
3026b877906bSopenharmony_ci      synchronized mode. This rule is applied recursively throughout the
3027b877906bSopenharmony_ci      tree of surfaces. This means, that one can set a sub-surface into
3028b877906bSopenharmony_ci      synchronized mode, and then assume that all its child and grand-child
3029b877906bSopenharmony_ci      sub-surfaces are synchronized, too, without explicitly setting them.
3030b877906bSopenharmony_ci
3031b877906bSopenharmony_ci      Destroying a sub-surface takes effect immediately. If you need to
3032b877906bSopenharmony_ci      synchronize the removal of a sub-surface to the parent surface update,
3033b877906bSopenharmony_ci      unmap the sub-surface first by attaching a NULL wl_buffer, update parent,
3034b877906bSopenharmony_ci      and then destroy the sub-surface.
3035b877906bSopenharmony_ci
3036b877906bSopenharmony_ci      If the parent wl_surface object is destroyed, the sub-surface is
3037b877906bSopenharmony_ci      unmapped.
3038b877906bSopenharmony_ci    </description>
3039b877906bSopenharmony_ci
3040b877906bSopenharmony_ci    <request name="destroy" type="destructor">
3041b877906bSopenharmony_ci      <description summary="remove sub-surface interface">
3042b877906bSopenharmony_ci	The sub-surface interface is removed from the wl_surface object
3043b877906bSopenharmony_ci	that was turned into a sub-surface with a
3044b877906bSopenharmony_ci	wl_subcompositor.get_subsurface request. The wl_surface's association
3045b877906bSopenharmony_ci	to the parent is deleted. The wl_surface is unmapped immediately.
3046b877906bSopenharmony_ci      </description>
3047b877906bSopenharmony_ci    </request>
3048b877906bSopenharmony_ci
3049b877906bSopenharmony_ci    <enum name="error">
3050b877906bSopenharmony_ci      <entry name="bad_surface" value="0"
3051b877906bSopenharmony_ci	     summary="wl_surface is not a sibling or the parent"/>
3052b877906bSopenharmony_ci    </enum>
3053b877906bSopenharmony_ci
3054b877906bSopenharmony_ci    <request name="set_position">
3055b877906bSopenharmony_ci      <description summary="reposition the sub-surface">
3056b877906bSopenharmony_ci	This schedules a sub-surface position change.
3057b877906bSopenharmony_ci	The sub-surface will be moved so that its origin (top left
3058b877906bSopenharmony_ci	corner pixel) will be at the location x, y of the parent surface
3059b877906bSopenharmony_ci	coordinate system. The coordinates are not restricted to the parent
3060b877906bSopenharmony_ci	surface area. Negative values are allowed.
3061b877906bSopenharmony_ci
3062b877906bSopenharmony_ci	The scheduled coordinates will take effect whenever the state of the
3063b877906bSopenharmony_ci	parent surface is applied. When this happens depends on whether the
3064b877906bSopenharmony_ci	parent surface is in synchronized mode or not. See
3065b877906bSopenharmony_ci	wl_subsurface.set_sync and wl_subsurface.set_desync for details.
3066b877906bSopenharmony_ci
3067b877906bSopenharmony_ci	If more than one set_position request is invoked by the client before
3068b877906bSopenharmony_ci	the commit of the parent surface, the position of a new request always
3069b877906bSopenharmony_ci	replaces the scheduled position from any previous request.
3070b877906bSopenharmony_ci
3071b877906bSopenharmony_ci	The initial position is 0, 0.
3072b877906bSopenharmony_ci      </description>
3073b877906bSopenharmony_ci      <arg name="x" type="int" summary="x coordinate in the parent surface"/>
3074b877906bSopenharmony_ci      <arg name="y" type="int" summary="y coordinate in the parent surface"/>
3075b877906bSopenharmony_ci    </request>
3076b877906bSopenharmony_ci
3077b877906bSopenharmony_ci    <request name="place_above">
3078b877906bSopenharmony_ci      <description summary="restack the sub-surface">
3079b877906bSopenharmony_ci	This sub-surface is taken from the stack, and put back just
3080b877906bSopenharmony_ci	above the reference surface, changing the z-order of the sub-surfaces.
3081b877906bSopenharmony_ci	The reference surface must be one of the sibling surfaces, or the
3082b877906bSopenharmony_ci	parent surface. Using any other surface, including this sub-surface,
3083b877906bSopenharmony_ci	will cause a protocol error.
3084b877906bSopenharmony_ci
3085b877906bSopenharmony_ci	The z-order is double-buffered. Requests are handled in order and
3086b877906bSopenharmony_ci	applied immediately to a pending state. The final pending state is
3087b877906bSopenharmony_ci	copied to the active state the next time the state of the parent
3088b877906bSopenharmony_ci	surface is applied. When this happens depends on whether the parent
3089b877906bSopenharmony_ci	surface is in synchronized mode or not. See wl_subsurface.set_sync and
3090b877906bSopenharmony_ci	wl_subsurface.set_desync for details.
3091b877906bSopenharmony_ci
3092b877906bSopenharmony_ci	A new sub-surface is initially added as the top-most in the stack
3093b877906bSopenharmony_ci	of its siblings and parent.
3094b877906bSopenharmony_ci      </description>
3095b877906bSopenharmony_ci      <arg name="sibling" type="object" interface="wl_surface"
3096b877906bSopenharmony_ci	   summary="the reference surface"/>
3097b877906bSopenharmony_ci    </request>
3098b877906bSopenharmony_ci
3099b877906bSopenharmony_ci    <request name="place_below">
3100b877906bSopenharmony_ci      <description summary="restack the sub-surface">
3101b877906bSopenharmony_ci	The sub-surface is placed just below the reference surface.
3102b877906bSopenharmony_ci	See wl_subsurface.place_above.
3103b877906bSopenharmony_ci      </description>
3104b877906bSopenharmony_ci      <arg name="sibling" type="object" interface="wl_surface"
3105b877906bSopenharmony_ci	   summary="the reference surface"/>
3106b877906bSopenharmony_ci    </request>
3107b877906bSopenharmony_ci
3108b877906bSopenharmony_ci    <request name="set_sync">
3109b877906bSopenharmony_ci      <description summary="set sub-surface to synchronized mode">
3110b877906bSopenharmony_ci	Change the commit behaviour of the sub-surface to synchronized
3111b877906bSopenharmony_ci	mode, also described as the parent dependent mode.
3112b877906bSopenharmony_ci
3113b877906bSopenharmony_ci	In synchronized mode, wl_surface.commit on a sub-surface will
3114b877906bSopenharmony_ci	accumulate the committed state in a cache, but the state will
3115b877906bSopenharmony_ci	not be applied and hence will not change the compositor output.
3116b877906bSopenharmony_ci	The cached state is applied to the sub-surface immediately after
3117b877906bSopenharmony_ci	the parent surface's state is applied. This ensures atomic
3118b877906bSopenharmony_ci	updates of the parent and all its synchronized sub-surfaces.
3119b877906bSopenharmony_ci	Applying the cached state will invalidate the cache, so further
3120b877906bSopenharmony_ci	parent surface commits do not (re-)apply old state.
3121b877906bSopenharmony_ci
3122b877906bSopenharmony_ci	See wl_subsurface for the recursive effect of this mode.
3123b877906bSopenharmony_ci      </description>
3124b877906bSopenharmony_ci    </request>
3125b877906bSopenharmony_ci
3126b877906bSopenharmony_ci    <request name="set_desync">
3127b877906bSopenharmony_ci      <description summary="set sub-surface to desynchronized mode">
3128b877906bSopenharmony_ci	Change the commit behaviour of the sub-surface to desynchronized
3129b877906bSopenharmony_ci	mode, also described as independent or freely running mode.
3130b877906bSopenharmony_ci
3131b877906bSopenharmony_ci	In desynchronized mode, wl_surface.commit on a sub-surface will
3132b877906bSopenharmony_ci	apply the pending state directly, without caching, as happens
3133b877906bSopenharmony_ci	normally with a wl_surface. Calling wl_surface.commit on the
3134b877906bSopenharmony_ci	parent surface has no effect on the sub-surface's wl_surface
3135b877906bSopenharmony_ci	state. This mode allows a sub-surface to be updated on its own.
3136b877906bSopenharmony_ci
3137b877906bSopenharmony_ci	If cached state exists when wl_surface.commit is called in
3138b877906bSopenharmony_ci	desynchronized mode, the pending state is added to the cached
3139b877906bSopenharmony_ci	state, and applied as a whole. This invalidates the cache.
3140b877906bSopenharmony_ci
3141b877906bSopenharmony_ci	Note: even if a sub-surface is set to desynchronized, a parent
3142b877906bSopenharmony_ci	sub-surface may override it to behave as synchronized. For details,
3143b877906bSopenharmony_ci	see wl_subsurface.
3144b877906bSopenharmony_ci
3145b877906bSopenharmony_ci	If a surface's parent surface behaves as desynchronized, then
3146b877906bSopenharmony_ci	the cached state is applied on set_desync.
3147b877906bSopenharmony_ci      </description>
3148b877906bSopenharmony_ci    </request>
3149b877906bSopenharmony_ci  </interface>
3150b877906bSopenharmony_ci
3151b877906bSopenharmony_ci</protocol>
3152