AtlatestRepositorysigil-ui
1
<?xml version="1.0" encoding="UTF-8"?>2
<protocol name="xdg_decoration_unstable_v1">3
<copyright>4
Copyright © 2018 Simon Ser6
Permission is hereby granted, free of charge, to any person obtaining a7
copy of this software and associated documentation files (the "Software"),8
to deal in the Software without restriction, including without limitation9
the rights to use, copy, modify, merge, publish, distribute, sublicense,10
and/or sell copies of the Software, and to permit persons to whom the11
Software is furnished to do so, subject to the following conditions:13
The above copyright notice and this permission notice (including the next14
paragraph) shall be included in all copies or substantial portions of the15
Software.17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL20
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER21
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING22
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER23
DEALINGS IN THE SOFTWARE.24
</copyright>26
<interface name="zxdg_decoration_manager_v1" version="1">27
<description summary="window decoration manager">28
This interface allows a compositor to announce support for server-side29
decorations.31
A window decoration is a set of window controls as deemed appropriate by32
the party managing them, such as user interface components used to move,33
resize and change a window's state.35
A client can use this protocol to request being decorated by a supporting36
compositor.38
If compositor and client do not negotiate the use of a server-side39
decoration using this protocol, clients continue to self-decorate as they40
see fit.42
Warning! The protocol described in this file is experimental and43
backward incompatible changes may be made. Backward compatible changes44
may be added together with the corresponding interface version bump.45
Backward incompatible changes are done by bumping the version number in46
the protocol and interface names and resetting the interface version.47
Once the protocol is to be declared stable, the 'z' prefix and the48
version number in the protocol and interface names are removed and the49
interface version number is reset.50
</description>52
<request name="destroy" type="destructor">53
<description summary="destroy the decoration manager object">54
Destroy the decoration manager. This doesn't destroy objects created55
with the manager.56
</description>57
</request>59
<request name="get_toplevel_decoration">60
<description summary="create a new toplevel decoration object">61
Create a new decoration object associated with the given toplevel.63
Creating an xdg_toplevel_decoration from an xdg_toplevel which has a64
buffer attached or committed is a client error, and any attempts by a65
client to attach or manipulate a buffer prior to the first66
xdg_toplevel_decoration.configure event must also be treated as67
errors.68
</description>69
<arg name="id" type="new_id" interface="zxdg_toplevel_decoration_v1"/>70
<arg name="toplevel" type="object" interface="xdg_toplevel"/>71
</request>72
</interface>74
<interface name="zxdg_toplevel_decoration_v1" version="1">75
<description summary="decoration object for a toplevel surface">76
The decoration object allows the compositor to toggle server-side window77
decorations for a toplevel surface. The client can request to switch to78
another mode.80
The xdg_toplevel_decoration object must be destroyed before its81
xdg_toplevel.82
</description>84
<enum name="error">85
<entry name="unconfigured_buffer" value="0"86
summary="xdg_toplevel has a buffer attached before configure"/>87
<entry name="already_constructed" value="1"88
summary="xdg_toplevel already has a decoration object"/>89
<entry name="orphaned" value="2"90
summary="xdg_toplevel destroyed before the decoration object"/>91
<entry name="invalid_mode" value="3" summary="invalid mode"/>92
</enum>94
<request name="destroy" type="destructor">95
<description summary="destroy the decoration object">96
Switch back to a mode without any server-side decorations at the next97
commit.98
</description>99
</request>101
<enum name="mode">102
<description summary="window decoration modes">103
These values describe window decoration modes.104
</description>105
<entry name="client_side" value="1"106
summary="no server-side window decoration"/>107
<entry name="server_side" value="2"108
summary="server-side window decoration"/>109
</enum>111
<request name="set_mode">112
<description summary="set the decoration mode">113
Set the toplevel surface decoration mode. This informs the compositor114
that the client prefers the provided decoration mode.116
After requesting a decoration mode, the compositor will respond by117
emitting an xdg_surface.configure event. The client should then update118
its content, drawing it without decorations if the received mode is119
server-side decorations. The client must also acknowledge the configure120
when committing the new content (see xdg_surface.ack_configure).122
The compositor can decide not to use the client's mode and enforce a123
different mode instead.125
Clients whose decoration mode depend on the xdg_toplevel state may send126
a set_mode request in response to an xdg_surface.configure event and wait127
for the next xdg_surface.configure event to prevent unwanted state.128
Such clients are responsible for preventing configure loops and must129
make sure not to send multiple successive set_mode requests with the130
same decoration mode.132
If an invalid mode is supplied by the client, the invalid_mode protocol133
error is raised by the compositor.134
</description>135
<arg name="mode" type="uint" enum="mode" summary="the decoration mode"/>136
</request>138
<request name="unset_mode">139
<description summary="unset the decoration mode">140
Unset the toplevel surface decoration mode. This informs the compositor141
that the client doesn't prefer a particular decoration mode.143
This request has the same semantics as set_mode.144
</description>145
</request>147
<event name="configure">148
<description summary="notify a decoration mode change">149
The configure event configures the effective decoration mode. The150
configured state should not be applied immediately. Clients must send an151
ack_configure in response to this event. See xdg_surface.configure and152
xdg_surface.ack_configure for details.154
A configure event can be sent at any time. The specified mode must be155
obeyed by the client.156
</description>157
<arg name="mode" type="uint" enum="mode" summary="the decoration mode"/>158
</event>159
</interface>160
</protocol>