summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 26431324..4e6b49bb 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -100,6 +100,8 @@ const help_text =
\\ see the same screen
\\ --attach=<name> ...of the session called <name>, which is what to
\\ use when more than one is running
+ \\ --geometry=WxH[+X+Y] the window's size in points, and where it goes
+ \\ where the display lets a window say (X11)
\\ -h, --help show this help and exit
\\ --version print the version and exit
\\
@@ -418,6 +420,8 @@ fn nativeMain(std_init: std.process.Init) !void {
if (mounts_len == mounts.len) badArgs(init.io, "too many mounts (maximum {d})", .{mounts.len});
mounts[mounts_len] = .{ .name = name, .dial = dial };
mounts_len += 1;
+ } else if (std.mem.startsWith(u8, a, "--geometry=")) {
+ opts.geometry = a["--geometry=".len..];
} else if (std.mem.eql(u8, a, "--nested")) {
opts.nested = true;
} else if (std.mem.eql(u8, a, "-w") or std.mem.eql(u8, a, "--wait")) {