aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-06-03 18:48:00 +0100
committerLibravatar GitHub <noreply@github.com>2018-06-03 18:48:00 +0100
commit0549fd027bee17d2ee904ccf7e6447a8f79d9f7f (patch)
tree53cfa1cbe37683c8ccdec3933ea8dad6cb290f48 /include
parentMerge pull request #2099 from RyanDwyer/fix-seat-get-active-child (diff)
parentAddress review comments for output subcommands (diff)
downloadsway-0549fd027bee17d2ee904ccf7e6447a8f79d9f7f.tar.gz
sway-0549fd027bee17d2ee904ccf7e6447a8f79d9f7f.tar.zst
sway-0549fd027bee17d2ee904ccf7e6447a8f79d9f7f.zip
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;
216sway_cmd input_cmd_xkb_rules; 216sway_cmd input_cmd_xkb_rules;
217sway_cmd input_cmd_xkb_variant; 217sway_cmd input_cmd_xkb_variant;
218 218
219sway_cmd output_cmd_background;
220sway_cmd output_cmd_disable;
221sway_cmd output_cmd_dpms;
222sway_cmd output_cmd_enable;
223sway_cmd output_cmd_mode;
224sway_cmd output_cmd_position;
225sway_cmd output_cmd_scale;
226sway_cmd output_cmd_transform;
227
219sway_cmd seat_cmd_attach; 228sway_cmd seat_cmd_attach;
220sway_cmd seat_cmd_fallback; 229sway_cmd seat_cmd_fallback;
221sway_cmd seat_cmd_cursor; 230sway_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 {
372 // Context for command handlers 372 // Context for command handlers
373 struct { 373 struct {
374 struct input_config *input_config; 374 struct input_config *input_config;
375 struct output_config *output_config;
375 struct seat_config *seat_config; 376 struct seat_config *seat_config;
376 struct sway_seat *seat; 377 struct sway_seat *seat;
377 struct sway_container *current_container; 378 struct sway_container *current_container;
378 bool using_criteria; 379 bool using_criteria;
380 struct {
381 int argc;
382 char **argv;
383 } leftovers;
379 } handler_context; 384 } handler_context;
380}; 385};
381 386