From 4c635f357adb95235429d8905b8598a2643b4f3b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 24 Oct 2026 13:55:12 -0300 Subject: 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) --- src/main.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.zig') 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= ...of the session called , 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")) { -- cgit v1.3