Skip to content

Commit

Permalink
output-management: Add more detailed vrr configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Nov 8, 2024
1 parent ec1616b commit 7ce1a2c
Showing 1 changed file with 40 additions and 4 deletions.
44 changes: 40 additions & 4 deletions unstable/cosmic-output-management-unstable-v1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
it's best to be forward compatible.
</description>

<interface name="zcosmic_output_manager_v1" version="1">
<interface name="zcosmic_output_manager_v1" version="2">
<description summary="Output configuration manager">
This interface provides extension points for wlr-output-management types.
</description>
Expand Down Expand Up @@ -90,7 +90,7 @@
</request>
</interface>

<interface name="zcosmic_output_head_v1" version="1">
<interface name="zcosmic_output_head_v1" version="2">
<description summary="Output extension object">
Extension to zwlr_output_head_v1.

Expand Down Expand Up @@ -129,6 +129,32 @@
in the head object anymore.
</description>
</request>

<!-- version 2 additions -->

<event name="adaptive_sync_available" since="2">
<description summary="is adaptive_sync available for this head">
This events describes if adaptive_sync is available for this head.

It is only sent if the output is enabled.
</description>
<arg name="available" type="int" summary="zero if disabled, non-zero if enabled"/>
</event>

<event name="adaptive_sync_ext" since="2">
<description summary="current adaptive_sync state">
This events describes the adaptive_sync state of this head.

It is only sent if the output is enabled.
</description>
<arg name="state" type="uint" enum="adaptive_sync_state_ext"/>
</event>

<enum name="adaptive_sync_state_ext" since="2">
<entry name="disabled" value="0" summary="adaptive sync is disabled"/>
<entry name="automatic" value="1" summary="adaptive sync will be actived automatically"/>
<entry name="always" value="2" summary="adaptive sync is forced to be always active"/>
</enum>
</interface>

<interface name="zcosmic_output_configuration_v1" version="1">
Expand Down Expand Up @@ -191,13 +217,14 @@
</request>
</interface>

<interface name="zcosmic_output_configuration_head_v1" version="1">
<interface name="zcosmic_output_configuration_head_v1" version="2">
<description summary="Output configuration head extension object">
Extension to zwlr_output_configuration_head_v1.

Adds additional/alternative parameters to the original zwlr_output_configuration_head_v1.

Once the original `zwlr_output_configuration_head_v1` is destroyed this object will also be destroyed.
Once the original `zwlr_output_configuration_head_v1` is destroyed this object will
become inert and all requests except `release` will be ignored.
</description>

<request name="set_scale_1000">
Expand All @@ -221,5 +248,14 @@
until it is destroyed.
</description>
</request>

<!-- version 2 additions -->

<request name="set_adaptive_sync_ext" since="2">
<description summary="set adaptive sync state">
This request requests a new adaptive sync state.
</description>
<arg name="state" type="uint" enum="zcosmic_output_head_v1.adaptive_sync_state_ext"/>
</request>
</interface>
</protocol>

0 comments on commit 7ce1a2c

Please sign in to comment.