diff options
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(); |