mirror of
https://gitlab.freedesktop.org/wlroots/wlr-protocols.git
synced 2025-12-20 06:50:05 +01:00
output-management: allow setting adaptive sync
This commit is contained in:
parent
8cdeaac749
commit
4264185db3
1 changed files with 32 additions and 4 deletions
|
|
@ -39,7 +39,7 @@
|
||||||
interface version number is reset.
|
interface version number is reset.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<interface name="zwlr_output_manager_v1" version="3">
|
<interface name="zwlr_output_manager_v1" version="4">
|
||||||
<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="3">
|
<interface name="zwlr_output_head_v1" version="4">
|
||||||
<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
|
||||||
|
|
@ -338,6 +338,22 @@
|
||||||
object.
|
object.
|
||||||
</description>
|
</description>
|
||||||
</request>
|
</request>
|
||||||
|
|
||||||
|
<!-- Version 4 additions -->
|
||||||
|
|
||||||
|
<enum name="adaptive_sync_state" since="4">
|
||||||
|
<entry name="disabled" value="0" summary="adaptive sync is disabled"/>
|
||||||
|
<entry name="enabled" value="1" summary="adaptive sync is enabled"/>
|
||||||
|
</enum>
|
||||||
|
|
||||||
|
<event name="adaptive_sync" since="4">
|
||||||
|
<description summary="current adaptive sync state">
|
||||||
|
This event describes whether adaptive sync is currently enabled for
|
||||||
|
the head or not. Adaptive sync is also known as Variable Refresh
|
||||||
|
Rate or VRR.
|
||||||
|
</description>
|
||||||
|
<arg name="state" type="uint" enum="adaptive_sync_state"/>
|
||||||
|
</event>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
<interface name="zwlr_output_mode_v1" version="3">
|
<interface name="zwlr_output_mode_v1" version="3">
|
||||||
|
|
@ -395,7 +411,7 @@
|
||||||
</request>
|
</request>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
<interface name="zwlr_output_configuration_v1" version="3">
|
<interface name="zwlr_output_configuration_v1" version="4">
|
||||||
<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.
|
||||||
|
|
||||||
|
|
@ -513,7 +529,7 @@
|
||||||
</request>
|
</request>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
<interface name="zwlr_output_configuration_head_v1" version="3">
|
<interface name="zwlr_output_configuration_head_v1" version="4">
|
||||||
<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.
|
||||||
|
|
||||||
|
|
@ -526,6 +542,8 @@
|
||||||
<entry name="invalid_custom_mode" value="3" summary="mode is invalid"/>
|
<entry name="invalid_custom_mode" value="3" summary="mode is invalid"/>
|
||||||
<entry name="invalid_transform" value="4" summary="transform value outside enum"/>
|
<entry name="invalid_transform" value="4" summary="transform value outside enum"/>
|
||||||
<entry name="invalid_scale" value="5" summary="scale negative or zero"/>
|
<entry name="invalid_scale" value="5" summary="scale negative or zero"/>
|
||||||
|
<entry name="invalid_adaptive_sync_state" value="6" since="4"
|
||||||
|
summary="invalid enum value used in the set_adaptive_sync request"/>
|
||||||
</enum>
|
</enum>
|
||||||
|
|
||||||
<request name="set_mode">
|
<request name="set_mode">
|
||||||
|
|
@ -569,5 +587,15 @@
|
||||||
</description>
|
</description>
|
||||||
<arg name="scale" type="fixed"/>
|
<arg name="scale" type="fixed"/>
|
||||||
</request>
|
</request>
|
||||||
|
|
||||||
|
<!-- Version 4 additions -->
|
||||||
|
|
||||||
|
<request name="set_adaptive_sync" since="4">
|
||||||
|
<description summary="enable/disable adaptive sync">
|
||||||
|
This request enables/disables adaptive sync. Adaptive sync is also
|
||||||
|
known as Variable Refresh Rate or VRR.
|
||||||
|
</description>
|
||||||
|
<arg name="state" type="uint" enum="zwlr_output_head_v1.adaptive_sync_state"/>
|
||||||
|
</request>
|
||||||
</interface>
|
</interface>
|
||||||
</protocol>
|
</protocol>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue