Merge pull request #3582 from c-edw/FixUninitializedInputManager

Initialize server so input manager is available.
master
Drew DeVault 6 years ago committed by GitHub
commit 09c2a46b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -318,12 +318,6 @@ int main(int argc, char **argv) {
detect_proprietary(allow_unsupported_gpu); detect_proprietary(allow_unsupported_gpu);
detect_raspi(); 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 < argc) { // Behave as IPC client
if (optind != 1) { if (optind != 1) {
sway_log(SWAY_ERROR, "Don't use options with the IPC client"); sway_log(SWAY_ERROR, "Don't use options with the IPC client");
@ -365,6 +359,12 @@ int main(int argc, char **argv) {
return 1; return 1;
} }
if (validate) {
bool valid = load_main_config(config_path, false, true);
free(config_path);
return valid ? 0 : 1;
}
ipc_init(&server); ipc_init(&server);
setenv("WAYLAND_DISPLAY", server.socket, true); setenv("WAYLAND_DISPLAY", server.socket, true);

Loading…
Cancel
Save