aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 19:16:46 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 19:16:46 +0100
commit2e0ef533f29212b80efd69eb647893145e8356ae (patch)
treeab201e04d05993d8e0e692f9f9e4bdce32af070a
parentcaaff5ac543e050fe6d2208ac4eac096f80cb86d (diff)
Init layout before checking config
-rw-r--r--sway/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/main.c b/sway/main.c
index 37681f2d..e85f7269 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -188,13 +188,13 @@ int main(int argc, char **argv) {
sway_log(L_INFO, "Starting sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH);
#endif
+ init_layout();
+
if (validate) {
bool valid = load_config(config_path);
return valid ? 0 : 1;
}
- init_layout();
-
if (!load_config(config_path)) {
sway_log(L_ERROR, "Error(s) loading config!");
}