output-management-v1: document static head data only being sent once

The physical size, make, model and serial number data are static information
and should not change over the lifetime of a wlr_output_head. Add this
constraint to the protocol text so implementations can be simplified.
This commit is contained in:
Roman Gilg 2023-03-18 20:24:44 +01:00 committed by Simon Ser
parent 2b8d43325b
commit ffb89ac790

View file

@ -191,6 +191,10 @@
This event describes the physical size of the head. This event is only This event describes the physical size of the head. This event is only
sent if the head has a physical size (e.g. is not a projector or a sent if the head has a physical size (e.g. is not a projector or a
virtual device). virtual device).
The physical size event is sent after a wlr_output_head object is created. This
event is only sent once per object, and the physical size does not change over
the lifetime of the wlr_output_head object.
</description> </description>
<arg name="width" type="int" summary="width in millimeters of the output"/> <arg name="width" type="int" summary="width in millimeters of the output"/>
<arg name="height" type="int" summary="height in millimeters of the output"/> <arg name="height" type="int" summary="height in millimeters of the output"/>
@ -278,6 +282,10 @@
identify the head by available information from other events but should identify the head by available information from other events but should
be aware that there is an increased risk of false positives. be aware that there is an increased risk of false positives.
If sent, the make event is sent after a wlr_output_head object is
created and only sent once per object. The make does not change over
the lifetime of the wlr_output_head object.
It is not recommended to display the make string in UI to users. For It is not recommended to display the make string in UI to users. For
that the string provided by the description event should be preferred. that the string provided by the description event should be preferred.
</description> </description>
@ -302,6 +310,10 @@
identify the head by available information from other events but should identify the head by available information from other events but should
be aware that there is an increased risk of false positives. be aware that there is an increased risk of false positives.
If sent, the model event is sent after a wlr_output_head object is
created and only sent once per object. The model does not change over
the lifetime of the wlr_output_head object.
It is not recommended to display the model string in UI to users. For It is not recommended to display the model string in UI to users. For
that the string provided by the description event should be preferred. that the string provided by the description event should be preferred.
</description> </description>
@ -323,6 +335,10 @@
available information from other events but should be aware that there available information from other events but should be aware that there
is an increased risk of false positives. is an increased risk of false positives.
If sent, the serial number event is sent after a wlr_output_head object
is created and only sent once per object. The serial number does not
change over the lifetime of the wlr_output_head object.
It is not recommended to display the serial_number string in UI to It is not recommended to display the serial_number string in UI to
users. For that the string provided by the description event should be users. For that the string provided by the description event should be
preferred. preferred.