Discussion:
[PATCH] protocol: allow to send a zero output refresh rate
(too old to reply)
Simon Ser
2018-09-29 20:28:18 UTC
Permalink
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 <***@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
Simon Ser
2018-10-26 09:15:07 UTC
Permalink
Hi,

What do you think of this patch?

Thanks,

Simon
Simon Ser
2018-11-17 23:56:14 UTC
Permalink
Bump

Loading...