diff options
author | Moelf <jerryling315@gmail.com> | 2019-05-10 23:57:53 -0700 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-05-14 00:11:04 -0400 |
commit | ed2e553b8d0dff3e74eeaa80a2586458271b2565 (patch) | |
tree | 3b48f4efad369798686611f21a380330e4c930dc /include/sway/output.h | |
parent | Spawn swaybar as a wayland client (diff) | |
download | sway-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.h | 4 |
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); | |||
82 | void output_damage_whole_container(struct sway_output *output, | 82 | void 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 | ||
85 | struct sway_output *output_by_name_or_id(const char *name_or_id); | 86 | struct sway_output *output_by_name_or_id(const char *name_or_id); |
86 | 87 | ||
88 | // this includes all the outputs, including disabled ones | ||
89 | struct sway_output *all_output_by_name_or_id(const char *name_or_id); | ||
90 | |||
87 | void output_sort_workspaces(struct sway_output *output); | 91 | void output_sort_workspaces(struct sway_output *output); |
88 | 92 | ||
89 | void output_enable(struct sway_output *output, struct output_config *oc); | 93 | void output_enable(struct sway_output *output, struct output_config *oc); |