Reset key buffer on reload

To preserve my sanity
This commit is contained in:
Drew DeVault 2015-08-20 17:14:26 -04:00
parent 1100335ea0
commit 3a5fce339f
3 changed files with 11 additions and 0 deletions

View file

@ -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);