output-management: add release requests for head and mode

Closes: https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/issues/62
This commit is contained in:
Simon Ser 2022-06-27 17:24:42 +02:00
parent 4aa366e3dd
commit 8cdeaac749

View file

@ -39,7 +39,7 @@
interface version number is reset. interface version number is reset.
</description> </description>
<interface name="zwlr_output_manager_v1" version="2"> <interface name="zwlr_output_manager_v1" version="3">
<description summary="output device configuration manager"> <description summary="output device configuration manager">
This interface is a manager that allows reading and writing the current This interface is a manager that allows reading and writing the current
output device configuration. output device configuration.
@ -125,7 +125,7 @@
</event> </event>
</interface> </interface>
<interface name="zwlr_output_head_v1" version="2"> <interface name="zwlr_output_head_v1" version="3">
<description summary="output device"> <description summary="output device">
A head is an output device. The difference between a wl_output object and A head is an output device. The difference between a wl_output object and
a head is that heads are advertised even if they are turned off. A head a head is that heads are advertised even if they are turned off. A head
@ -251,14 +251,15 @@
</event> </event>
<event name="finished"> <event name="finished">
<description summary="the head has been destroyed"> <description summary="the head has disappeared">
The compositor will destroy the object immediately after sending this This event indicates that the head is no longer available. The head
event, so it will become invalid and the client should release any object becomes inert. Clients should send a destroy request and release
resources associated with it. any resources associated with it.
</description> </description>
</event> </event>
<!-- Version 2 additions --> <!-- Version 2 additions -->
<event name="make" since="2"> <event name="make" since="2">
<description summary="head manufacturer"> <description summary="head manufacturer">
This event describes the manufacturer of the head. This event describes the manufacturer of the head.
@ -328,9 +329,18 @@
</description> </description>
<arg name="serial_number" type="string"/> <arg name="serial_number" type="string"/>
</event> </event>
<!-- Version 3 additions -->
<request name="release" type="destructor" since="3">
<description summary="destroy the head object">
This request indicates that the client will no longer use this head
object.
</description>
</request>
</interface> </interface>
<interface name="zwlr_output_mode_v1" version="2"> <interface name="zwlr_output_mode_v1" version="3">
<description summary="output mode"> <description summary="output mode">
This object describes an output mode. This object describes an output mode.
@ -368,15 +378,24 @@
</event> </event>
<event name="finished"> <event name="finished">
<description summary="the mode has been destroyed"> <description summary="the mode has disappeared">
The compositor will destroy the object immediately after sending this This event indicates that the mode is no longer available. The mode
event, so it will become invalid and the client should release any object becomes inert. Clients should send a destroy request and release
resources associated with it. any resources associated with it.
</description> </description>
</event> </event>
<!-- Version 3 additions -->
<request name="release" type="destructor" since="3">
<description summary="destroy the mode object">
This request indicates that the client will no longer use this mode
object.
</description>
</request>
</interface> </interface>
<interface name="zwlr_output_configuration_v1" version="2"> <interface name="zwlr_output_configuration_v1" version="3">
<description summary="output configuration"> <description summary="output configuration">
This object is used by the client to describe a full output configuration. This object is used by the client to describe a full output configuration.
@ -494,7 +513,7 @@
</request> </request>
</interface> </interface>
<interface name="zwlr_output_configuration_head_v1" version="2"> <interface name="zwlr_output_configuration_head_v1" version="3">
<description summary="head configuration"> <description summary="head configuration">
This object is used by the client to update a single head's configuration. This object is used by the client to update a single head's configuration.