aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-12-20 13:02:45 -0500
committerLibravatar emersion <contact@emersion.fr>2018-12-20 19:55:29 +0100
commit88d96bc41ff638bdc767e30bf6ccbbd530258420 (patch)
tree5d822da99812aab4e849e566c53d3a6ba87ba496 /include/sway/output.h
parentTerminate swaybg in output_disable (diff)
downloadsway-88d96bc41ff638bdc767e30bf6ccbbd530258420.tar.gz
sway-88d96bc41ff638bdc767e30bf6ccbbd530258420.tar.zst
sway-88d96bc41ff638bdc767e30bf6ccbbd530258420.zip
Combine output_by_name and output_by_identifier
This combines `output_by_name` and `output_by_identifier` into a single function called `output_by_name_or_id`. This allows for output identifiers to be used in all commands, simplifies the logic of the callers, and is more efficient since worst case is a single pass through the output list.
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 43c1ab96..f7c5ceba 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -84,9 +84,7 @@ void output_damage_box(struct sway_output *output, struct wlr_box *box);
84void output_damage_whole_container(struct sway_output *output, 84void output_damage_whole_container(struct sway_output *output,
85 struct sway_container *con); 85 struct sway_container *con);
86 86
87struct sway_output *output_by_name(const char *name); 87struct sway_output *output_by_name_or_id(const char *name_or_id);
88
89struct sway_output *output_by_identifier(const char *identifier);
90 88
91void output_sort_workspaces(struct sway_output *output); 89void output_sort_workspaces(struct sway_output *output);
92 90