Skip to content

Commit

Permalink
output-management: Use proper release requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed May 6, 2024
1 parent 722273c commit 729ee22
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions unstable/cosmic-output-management-unstable-v1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<arg name="config_head" type="object" interface="zwlr_output_configuration_head_v1"/>
</request>

<request name="destroy" type="destructor">
<request name="release" type="destructor">
<description summary="Destroy this global">
Destroys this global. All previously created objects remain valid.
</description>
Expand All @@ -98,8 +98,6 @@

Properties sent via this interface are applied atomically via the wlr_output_manager.done event.
No guarantees are made regarding the order in which properties are sent.

Calling `release` on the parent zwlr_output_head_v1 will also destroy this object.
</description>

<event name="scale_1000">
Expand All @@ -124,6 +122,13 @@
</description>
<arg name="name" type="string" allow-null="true"/>
</event>

<request name="release" type="destructor">
<description summary="destroy the output head">
Using this request a client can tell the compositor that it is not interested
in the head object anymore.
</description>
</request>
</interface>

<interface name="zcosmic_output_configuration_v1" version="1">
Expand Down Expand Up @@ -176,14 +181,12 @@
</description>
</event>

<request name="destroy" type="destructor">
<request name="release" type="destructor">
<description summary="destroy the output configuration">
Using this request a client can tell the compositor that it is not going
to use the configuration object anymore. Any changes to the outputs
that have not been applied will be discarded.

This request also destroys wlr_output_configuration_head objects created
via this object.
will still be attached to the original `zwlr_output_configuration_head_v1`
if it isn't destroyed.
</description>
</request>
</interface>
Expand All @@ -196,6 +199,7 @@

Once the original `zwlr_output_configuration_head_v1` is destroyed this object will also be destroyed.
</description>

<request name="set_scale_1000">
<description summary="set the scale multiplied by 1000">
This request sets the head's scale multiplied by 1000 for additional precision.
Expand All @@ -208,5 +212,14 @@
</description>
<arg name="scale_1000" type="int"/>
</request>

<request name="release" type="destructor">
<description summary="destroy the output configuration head">
Using this request a client can tell the compositor that it is not going
to use the configuration object anymore. Already issued requests will
still be attached to the original `zwlr_output_configuration_head_v1`
until it is destroyed.
</description>
</request>
</interface>
</protocol>

0 comments on commit 729ee22

Please sign in to comment.