diff options
author | taiyu <taiyu.len@gmail.com> | 2015-09-04 16:57:03 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-09-04 16:57:03 -0700 |
commit | 4cd18449d2927304e02607a7130572d5329c274e (patch) | |
tree | 6c4b5ea735136cbf50d1f7363bcecee6658df32c /include/commands.h | |
parent | default gap value (diff) | |
download | sway-4cd18449d2927304e02607a7130572d5329c274e.tar.gz sway-4cd18449d2927304e02607a7130572d5329c274e.tar.zst sway-4cd18449d2927304e02607a7130572d5329c274e.zip |
better handling of commands during config
Diffstat (limited to 'include/commands.h')
-rw-r--r-- | include/commands.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/commands.h b/include/commands.h index 714d2db0..31bc0b0b 100644 --- a/include/commands.h +++ b/include/commands.h | |||
@@ -6,8 +6,13 @@ | |||
6 | struct cmd_handler { | 6 | struct cmd_handler { |
7 | char *command; | 7 | char *command; |
8 | bool (*handle)(struct sway_config *config, int argc, char **argv); | 8 | bool (*handle)(struct sway_config *config, int argc, char **argv); |
9 | // if <0 command is deffered until compositor is ready. | ||
10 | // if =0 command can be called anytime. | ||
11 | // if >0 command can only be called via keybind, ignored in config | ||
12 | int config_type; | ||
9 | }; | 13 | }; |
10 | 14 | ||
15 | struct cmd_handler *find_handler(char *line); | ||
11 | bool handle_command(struct sway_config *config, char *command); | 16 | bool handle_command(struct sway_config *config, char *command); |
12 | 17 | ||
13 | void remove_view_from_scratchpad(); | 18 | void remove_view_from_scratchpad(); |