move startup log after arg parsing
Browse files
+2 −2 src/main.zig
| @@ -151,8 +151,6 @@ pub fn main() !void { | |||
| 151 | const allocator = gpa.allocator(); | 151 | const allocator = gpa.allocator(); |
| 152 | defer _ = gpa.deinit(); | 152 | defer _ = gpa.deinit(); |
| 153 | 153 | ||
| 154 | - std.debug.print("oxwm starting\n", .{}); | ||
| 155 | - | ||
| 156 | var config_path: ?[]const u8 = null; | 154 | var config_path: ?[]const u8 = null; |
| 157 | var args = std.process.args(); | 155 | var args = std.process.args(); |
| 158 | _ = args.skip(); | 156 | _ = args.skip(); |
| @@ -171,6 +169,8 @@ pub fn main() !void { | |||
| 171 | } | 169 | } |
| 172 | } | 170 | } |
| 173 | 171 | ||
| 172 | + std.debug.print("oxwm starting\n", .{}); | ||
| 173 | + | ||
| 174 | config = config_mod.Config.init(allocator); | 174 | config = config_mod.Config.init(allocator); |
| 175 | defer config.deinit(); | 175 | defer config.deinit(); |
| 176 | config_mod.set_config(&config); | 176 | config_mod.set_config(&config); |