oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

Added version to main.zig.

Commit
2870f1eb38076ee9157707d37c397ec5cafb89fc
Parent
783e466
Author
tonybanters <tonybanters@gmail.com>
Date
2026-02-16 17:03:38

Diff

diff --git a/src/main.zig b/src/main.zig
index 13a1a1e..22d9ed0 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,4 +1,5 @@
 const std = @import("std");
+const VERSION = "v0.11.0";
 const display_mod = @import("x11/display.zig");
 const events = @import("x11/events.zig");
 const xlib = @import("x11/xlib.zig");
@@ -161,7 +162,7 @@ pub fn main() !void {
             print_help();
             return;
         } else if (std.mem.eql(u8, arg, "-v") or std.mem.eql(u8, arg, "--version")) {
-            std.debug.print("oxwm 0.1.0\n", .{});
+            std.debug.print(VERSION, .{});
             return;
         } else if (std.mem.eql(u8, arg, "--init")) {
             init_config(allocator);