diff options
author | Brian Ashworth <[email protected]> | 2019-06-11 21:41:02 -0400 |
---|---|---|
committer | Simon Ser <[email protected]> | 2019-06-12 07:56:41 +0300 |
commit | 9670ccee683ab985e89eb04302fb998c4161f2d6 (patch) | |
tree | f7cafeaf55a7c139e97a920b0b43bcb080d3a27c /include/sway/config.h | |
parent | 2b5bf78fafdf027624ca88e1f703bc9e577f4690 (diff) |
bindings: defer while initiailizing
This adds the logic to defer binding execution while sway is still
initializing. Without this, the binding command would be executed, but
the command handler would return CMD_DEFER, which was being treated as
a failure to run. To avoid partial executions, this will defer all
bindings while config->active is false.
Diffstat (limited to 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 57ae3c63..9736a665 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -559,6 +559,11 @@ bool read_config(FILE *file, struct sway_config *config, void run_deferred_commands(void); /** + * Run the binding commands that were deferred when initializing the inputs + */ +void run_deferred_bindings(void); + +/** * Adds a warning entry to the swaynag instance used for errors. */ void config_add_swaynag_warning(char *fmt, ...); |