summaryrefslogtreecommitdiffstats
path: root/include/commands.h
diff options
context:
space:
mode:
authorLibravatar taiyu <taiyu.len@gmail.com>2015-09-04 16:57:03 -0700
committerLibravatar taiyu <taiyu.len@gmail.com>2015-09-04 16:57:03 -0700
commit4cd18449d2927304e02607a7130572d5329c274e (patch)
tree6c4b5ea735136cbf50d1f7363bcecee6658df32c /include/commands.h
parentdefault gap value (diff)
downloadsway-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.h5
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 @@
6struct cmd_handler { 6struct 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
15struct cmd_handler *find_handler(char *line);
11bool handle_command(struct sway_config *config, char *command); 16bool handle_command(struct sway_config *config, char *command);
12 17
13void remove_view_from_scratchpad(); 18void remove_view_from_scratchpad();