[PATCH] protocol: allow to send a zero output refresh rate

Simon Ser contact at emersion.fr
Sat Sep 29 20:28:18 UTC 2018


Fixed refresh rate doesn't always make sense for all outputs. In case
it's not available or not relevant, allow compositors to send zero.

This is for instance the case for outputs with variable refresh rate
(such as FreeSync) and virtual outputs.

Signed-off-by: Simon Ser <contact at emersion.fr>
---
 protocol/wayland.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 141038b..3c2aa3a 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -2447,6 +2447,10 @@
 	the output size in the global compositor space. For instance,
 	the output may be scaled, as described in wl_output.scale,
 	or transformed, as described in wl_output.transform.
+
+	The vertical refresh rate can be set to zero if it doesn't make
+	sense for this output (e.g. for outputs with variable refresh
+	rates or virtual outputs).
       </description>
       <arg name="flags" type="uint" enum="mode" summary="bitfield of mode flags"/>
       <arg name="width" type="int" summary="width of the mode in hardware units"/>
-- 
2.19.0




More information about the wayland-devel mailing list