Add name event to xdg-output

Submitted by Drew DeVault on April 9, 2018, 12:15 p.m.

Details

Message ID 20180409121510.4822-1-sir@cmpwn.com
State Superseded
Headers show
Series "Add name event to xdg-output" ( rev: 3 ) in Wayland

Not browsing as part of any series.

Commit Message

Drew DeVault April 9, 2018, 12:15 p.m.
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
---
Updated to incorporate Pekka's feedback.

 unstable/xdg-output/xdg-output-unstable-v1.xml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/unstable/xdg-output/xdg-output-unstable-v1.xml b/unstable/xdg-output/xdg-output-unstable-v1.xml
index 0c0c481..e98b320 100644
--- a/unstable/xdg-output/xdg-output-unstable-v1.xml
+++ b/unstable/xdg-output/xdg-output-unstable-v1.xml
@@ -77,7 +77,7 @@ 
     </request>
   </interface>
 
-  <interface name="zxdg_output_v1" version="1">
+  <interface name="zxdg_output_v1" version="2">
     <description summary="compositor logical output region">
       An xdg_output describes part of the compositor geometry.
 
@@ -157,5 +157,21 @@ 
       </description>
     </event>
 
+    <event name="name" since="2">
+      <description summary="name of this output">
+    Many compositors will assign names to their outputs, show them to the user,
+    allow them to be configured by name, etc. The client may wish to know this
+    name as well to offer the user similar behaviors.
+
+    This name should be unique to each wl_output and may use whatever naming
+    convention the compositor prefers. Names can be expected to be consistent
+    across sessions, though not necessarily across compositors.
+
+    The name event is sent after creating an xdg_output (see
+    xdg_output_manager.get_xdg_output).
+      </description>
+      <arg name="name" type="string" summary="output name"/>
+    </event>
+
   </interface>
 </protocol>