]> git.sur5r.net Git - i3/i3/blobdiff - src/main.c
Allow checking for duplicate bindings with -C
[i3/i3] / src / main.c
index d7d7530a968ebc527d1ca60a13bb8241328cd71f..3ebdbf0cc0a2667f4cc4bf9c98e85d59fa8a1b90 100644 (file)
@@ -420,7 +420,7 @@ int main(int argc, char *argv[]) {
     }
 
     if (only_check_config) {
-        exit(parse_configuration(override_configpath, false) ? 0 : 1);
+        exit(load_configuration(override_configpath, C_VALIDATE) ? 0 : 1);
     }
 
     /* If the user passes more arguments, we act like i3-msg would: Just send
@@ -586,7 +586,7 @@ int main(int argc, char *argv[]) {
 #include "atoms.xmacro"
 #undef xmacro
 
-    load_configuration(override_configpath, false);
+    load_configuration(override_configpath, C_LOAD);
 
     if (config.ipc_socket_path == NULL) {
         /* Fall back to a file name in /tmp/ based on the PID */