[PATCH v1] wayland-api: added name/seatname properties to the wl_output

Imran Zaman imran.zaman at gmail.com
Fri Oct 17 02:37:37 PDT 2014


In a multi-seat configuration, clients may need to filter
out the outputs based on the (udev) seat it is hooked to or
based on the name of the output.
Since version of the output is increased, the change does
not affect the current implementation and is optional whoever
wants to use the properties of the output (e.g. its very
similar that input which has the name property attached to
it).

Signed-off-by: Imran Zaman <imran.zaman at gmail.com>
---
 protocol/wayland.xml | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 762482e..7580cdf 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -1741,7 +1741,7 @@
     </request>
   </interface>
 
-  <interface name="wl_output" version="2">
+  <interface name="wl_output" version="3">
     <description summary="compositor output region">
       An output describes part of the compositor geometry.  The
       compositor works in the 'compositor coordinate system' and an
@@ -1879,6 +1879,26 @@
       </description>
       <arg name="factor" type="int" summary="scaling factor of output"/>
     </event>
+
+    <!-- Version 3 of additions -->
+
+    <event name="name" since="3">
+      <description summary="name of the output">
+  In a multiseat configuration this can be used by the client to help
+  identify the name of the output and consequently the name can be used to
+  select the output(s) based on the configuration.
+      </description>
+      <arg name="name" type="string"/>
+    </event>
+
+    <event name="seatname" since="3">
+      <description summary="name of the seat the output is constrained to">
+  In a multiseat configuration this can be used by the client to help
+  identify the seat which the given output is constrained to and consequently
+  select the output(s) based on the client own seat.
+      </description>
+      <arg name="name" type="string"/>
+    </event>
   </interface>
 
   <interface name="wl_region" version="1">
-- 
1.9.1



More information about the wayland-devel mailing list