aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Moelf <jerryling315@gmail.com>2019-05-10 23:57:53 -0700
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-05-14 00:11:04 -0400
commited2e553b8d0dff3e74eeaa80a2586458271b2565 (patch)
tree3b48f4efad369798686611f21a380330e4c930dc /include/sway/output.h
parentSpawn swaybar as a wayland client (diff)
downloadsway-ed2e553b8d0dff3e74eeaa80a2586458271b2565.tar.gz
sway-ed2e553b8d0dff3e74eeaa80a2586458271b2565.tar.zst
sway-ed2e553b8d0dff3e74eeaa80a2586458271b2565.zip
Implement output toggle
discussed in #4136, this can't handle wildcard but won't crash.
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index cae77e2e..d4438c0e 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -82,8 +82,12 @@ void output_damage_box(struct sway_output *output, struct wlr_box *box);
82void output_damage_whole_container(struct sway_output *output, 82void output_damage_whole_container(struct sway_output *output,
83 struct sway_container *con); 83 struct sway_container *con);
84 84
85// this ONLY includes the enabled outputs
85struct sway_output *output_by_name_or_id(const char *name_or_id); 86struct sway_output *output_by_name_or_id(const char *name_or_id);
86 87
88// this includes all the outputs, including disabled ones
89struct sway_output *all_output_by_name_or_id(const char *name_or_id);
90
87void output_sort_workspaces(struct sway_output *output); 91void output_sort_workspaces(struct sway_output *output);
88 92
89void output_enable(struct sway_output *output, struct output_config *oc); 93void output_enable(struct sway_output *output, struct output_config *oc);