mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Refactor cmd_output to use config_subcommand
This commit is contained in:
parent
ebe0b668c9
commit
5ea4a4d3ee
12 changed files with 371 additions and 267 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue