summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar taiyu <taiyu.len@gmail.com>2015-09-10 11:07:40 -0700
committerLibravatar taiyu <taiyu.len@gmail.com>2015-09-10 11:07:40 -0700
commitaaa0923bc4fe4ffda114482a9b8023c90c26c8dc (patch)
tree7c12a435bf56e4ebfcae689ce46280eeeb330346 /include
parentmode supports multi token names (diff)
downloadsway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.tar.gz
sway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.tar.zst
sway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.zip
cmd status + workspace ws output op
Diffstat (limited to 'include')
-rw-r--r--include/commands.h15
-rw-r--r--include/config.h1
2 files changed, 8 insertions, 8 deletions
diff --git a/include/commands.h b/include/commands.h
index 0a38ce43..5c87be51 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -5,17 +5,16 @@
5 5
6struct cmd_handler { 6struct cmd_handler {
7 char *command; 7 char *command;
8 bool (*handle)(int argc, char **argv); 8 enum cmd_status {
9 enum { 9 CMD_SUCCESS,
10 CMD_COMPOSITOR_READY, 10 CMD_FAILURE,
11 CMD_KEYBIND, 11 CMD_DEFER,
12 CMD_ANYTIME 12 } (*handle)(int argc, char **argv);
13 } config_type;
14}; 13};
15 14
16bool handle_command(char *command); 15enum cmd_status handle_command(char *command);
17// Handles commands during config 16// Handles commands during config
18bool config_command(char *command); 17enum cmd_status config_command(char *command);
19 18
20void remove_view_from_scratchpad(); 19void remove_view_from_scratchpad();
21 20
diff --git a/include/config.h b/include/config.h
index 4070c9ef..676218c8 100644
--- a/include/config.h
+++ b/include/config.h
@@ -52,6 +52,7 @@ struct sway_config {
52 bool active; 52 bool active;
53 bool failed; 53 bool failed;
54 bool reloading; 54 bool reloading;
55 bool reading;
55 bool auto_back_and_forth; 56 bool auto_back_and_forth;
56 57
57 int gaps_inner; 58 int gaps_inner;