]> git.sur5r.net Git - i3/i3/blobdiff - src/output.c
Introduce output_primary_name function
[i3/i3] / src / output.c
index e3c54a67274e31821be38e7ecd62663b4bca363e..1b232694ddc0b14ecbed72320305b8a26c567f7c 100644 (file)
@@ -44,6 +44,14 @@ Output *get_output_from_string(Output *current_output, const char *output_str) {
     return get_output_by_name(output_str, true);
 }
 
+/*
+ * Retrieves the primary name of an output.
+ *
+ */
+char *output_primary_name(Output *output) {
+    return output->name;
+}
+
 Output *get_output_for_con(Con *con) {
     Con *output_con = con_get_output(con);
     if (output_con == NULL) {