aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-20 17:14:26 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-20 17:14:46 -0400
commit3a5fce339f8dcc22db8cafdfeba7b2748df02d18 (patch)
treecc8e636cb46b901b782c9bb38bdaa405ae2a8964 /sway/config.c
parent1100335ea01ecd56df68568622580db14e72b6c7 (diff)
Reset key buffer on reload
To preserve my sanity
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 9f65e8a2..0afb0205 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -9,6 +9,7 @@
#include "commands.h"
#include "config.h"
#include "layout.h"
+#include "input_state.h"
struct sway_config *config;
@@ -147,6 +148,8 @@ _continue:
bool load_config(const char *file) {
sway_log(L_INFO, "Loading config");
+ input_init();
+
char *path;
if (file != NULL) {
path = strdup(file);