]> git.sur5r.net Git - i3/i3/blobdiff - include/data.h
Merge pull request #2887 from orestisf1993/next
[i3/i3] / include / data.h
index 54333e049e2b5789ad4ec922f784037cd08eb78e..7411ac20cdb5780627068ace61fa95e54b43c9b4 100644 (file)
@@ -349,6 +349,13 @@ struct Autostart {
     autostarts_always;
 };
 
+struct output_name {
+    char *name;
+
+    SLIST_ENTRY(output_name)
+    names;
+};
+
 /**
  * An Output is a physical output on your graphics driver. Outputs which
  * are currently in use have (output->active == true). Each output has a
@@ -370,8 +377,11 @@ struct xoutput {
     bool to_be_disabled;
     bool primary;
 
-    /** Name of the output */
-    char *name;
+    /** List of names for the output.
+     * An output always has at least one name; the first name is
+     * considered the primary one. */
+    SLIST_HEAD(names_head, output_name)
+    names_head;
 
     /** Pointer to the Con which represents this output */
     Con *con;