aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-03 18:48:00 +0100
committerGitHub <noreply@github.com>2018-06-03 18:48:00 +0100
commit0549fd027bee17d2ee904ccf7e6447a8f79d9f7f (patch)
tree53cfa1cbe37683c8ccdec3933ea8dad6cb290f48 /include
parent6d0ad6a1ed1d86863efe6eeb0d2aea4e1055d22f (diff)
parent51fa988be9203dd81fd0897611a854ef9f4b4f5f (diff)
Merge pull request #2087 from RedSoxFan/output-subcommand
Refactor cmd_output to use config_subcommand
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h9
-rw-r--r--include/sway/config.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 593ae0f1..7ca0bda8 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -216,6 +216,15 @@ sway_cmd input_cmd_xkb_options;
sway_cmd input_cmd_xkb_rules;
sway_cmd input_cmd_xkb_variant;
+sway_cmd output_cmd_background;
+sway_cmd output_cmd_disable;
+sway_cmd output_cmd_dpms;
+sway_cmd output_cmd_enable;
+sway_cmd output_cmd_mode;
+sway_cmd output_cmd_position;
+sway_cmd output_cmd_scale;
+sway_cmd output_cmd_transform;
+
sway_cmd seat_cmd_attach;
sway_cmd seat_cmd_fallback;
sway_cmd seat_cmd_cursor;
diff --git a/include/sway/config.h b/include/sway/config.h
index b597da75..81e9c382 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -372,10 +372,15 @@ struct sway_config {
// Context for command handlers
struct {
struct input_config *input_config;
+ struct output_config *output_config;
struct seat_config *seat_config;
struct sway_seat *seat;
struct sway_container *current_container;
bool using_criteria;
+ struct {
+ int argc;
+ char **argv;
+ } leftovers;
} handler_context;
};