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