protocol: allow to send a zero output refresh rate

Submitted by Simon Ser on Sept. 29, 2018, 8:28 p.m.


Message ID
State Superseded
Headers show
Series "protocol: allow to send a zero output refresh rate" ( rev: 1 ) in Wayland

Not browsing as part of any series.

Commit Message

Simon Ser Sept. 29, 2018, 8:28 p.m.
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 <>
 protocol/wayland.xml | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

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).
       <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"/>



What do you think of this patch?