summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-24 13:55:12 -0300
committerGabriel Schneider <[email protected]>2026-10-24 16:02:22 -0300
commit4c635f357adb95235429d8905b8598a2643b4f3b (patch)
treedd4f4f9b7e66b2bad71a0d30541c2b4ce2bb4cb9 /src/main.zig
parent95321ab082a750f4f1ef26d9bb21d1d3d01274f2 (diff)
downloadpardes-4c635f357adb95235429d8905b8598a2643b4f3b.tar.gz
pardes-4c635f357adb95235429d8905b8598a2643b4f3b.zip
drag 2/3: a pane's or column's grip let go past the window's edge opens it in a new window (Handover.zig)
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")) {