mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Init layout before checking config
This commit is contained in:
parent
caaff5ac54
commit
2e0ef533f2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
sway_log(L_INFO, "Starting sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
init_layout();
|
||||||
|
|
||||||
if (validate) {
|
if (validate) {
|
||||||
bool valid = load_config(config_path);
|
bool valid = load_config(config_path);
|
||||||
return valid ? 0 : 1;
|
return valid ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
init_layout();
|
|
||||||
|
|
||||||
if (!load_config(config_path)) {
|
if (!load_config(config_path)) {
|
||||||
sway_log(L_ERROR, "Error(s) loading config!");
|
sway_log(L_ERROR, "Error(s) loading config!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue