aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-05-10 23:57:53 -0700
committerFurkan Sahin <furkan-dev@proton.me>2019-05-10 23:57:53 -0700
commitc31bcd5cde5df2d1bdd5b34c99447071db03c12e (patch)
tree3b48f4efad369798686611f21a380330e4c930dc /include
parent5952de795001c6d0b2d3097b17acbd70a0a3668f (diff)
Implement output toggle
discussed in #4136, this can't handle wildcard but won't crash.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/output.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index cfe2aa07..c4903788 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -270,6 +270,7 @@ sway_cmd output_cmd_mode;
sway_cmd output_cmd_position;
sway_cmd output_cmd_scale;
sway_cmd output_cmd_subpixel;
+sway_cmd output_cmd_toggle;
sway_cmd output_cmd_transform;
sway_cmd seat_cmd_attach;
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);
void output_damage_whole_container(struct sway_output *output,
struct sway_container *con);
+// this ONLY includes the enabled outputs
struct sway_output *output_by_name_or_id(const char *name_or_id);
+// this includes all the outputs, including disabled ones
+struct sway_output *all_output_by_name_or_id(const char *name_or_id);
+
void output_sort_workspaces(struct sway_output *output);
void output_enable(struct sway_output *output, struct output_config *oc);