From e1b8190d2cce524ee460e4e32ea254bc697d36e9 Mon Sep 17 00:00:00 2001 From: Connor E <38229097+c-edw@users.noreply.github.com> Date: Tue, 5 Feb 2019 15:39:22 +0000 Subject: [PATCH] Initialize server so input manager is available. --- sway/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sway/main.c b/sway/main.c index b3ffdd833..67d0f7992 100644 --- a/sway/main.c +++ b/sway/main.c @@ -318,12 +318,6 @@ int main(int argc, char **argv) { detect_proprietary(allow_unsupported_gpu); detect_raspi(); - if (validate) { - bool valid = load_main_config(config_path, false, true); - free(config_path); - return valid ? 0 : 1; - } - if (optind < argc) { // Behave as IPC client if (optind != 1) { sway_log(SWAY_ERROR, "Don't use options with the IPC client"); @@ -365,6 +359,12 @@ int main(int argc, char **argv) { return 1; } + if (validate) { + bool valid = load_main_config(config_path, false, true); + free(config_path); + return valid ? 0 : 1; + } + ipc_init(&server); setenv("WAYLAND_DISPLAY", server.socket, true);