summaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
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 @@
9#include "commands.h" 9#include "commands.h"
10#include "config.h" 10#include "config.h"
11#include "layout.h" 11#include "layout.h"
12#include "input_state.h"
12 13
13struct sway_config *config; 14struct sway_config *config;
14 15
@@ -147,6 +148,8 @@ _continue:
147bool load_config(const char *file) { 148bool load_config(const char *file) {
148 sway_log(L_INFO, "Loading config"); 149 sway_log(L_INFO, "Loading config");
149 150
151 input_init();
152
150 char *path; 153 char *path;
151 if (file != NULL) { 154 if (file != NULL) {
152 path = strdup(file); 155 path = strdup(file);