diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 07:50:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 08:14:14 -0300 |
| commit | 5ad6067936f306271b875aaf182d4866055da10d (patch) | |
| tree | 10790712fb4cd8110c2ad7c8a9ae53e452019323 /dev/gui/gui.zig | |
| parent | bbae7225e939daf4b6360d3de7af06c0fd95ce8d (diff) | |
| download | pardes-5ad6067936f306271b875aaf182d4866055da10d.tar.gz pardes-5ad6067936f306271b875aaf182d4866055da10d.zip | |
client: an Upgrade from the installed build (main 6d937cd125ca) to this one, the coordinator's release stage: a window exec'd at an Upgrade takes its size from PARDES_JOIN_SIZE (runtime/client.zig `execAgain`; dev/gui/gui.zig where `--geometry` is read), a string a test finds in the binary as PARDES_JOIN_VIEW is: test/daemon.py `knows_size`, and `pair_window_geometry` skips with a line said when the old window cannot pass its size (the installed build's: by design, its exec is the old client's); a far link cut with no last word dials again too (`replica.cutListed(why, session, far)`: the dial is the asking, the far daemon's "no session called" ends it), as near ones do since item 0: from the installed build `far_exec` lost its client before (2 of 6 runs) and still does once in five (the old far client is the installed build's code); a far client whose ssh link drops now dials again for up to 20 s before it says so
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/gui/gui.zig')
| -rw-r--r-- | dev/gui/gui.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig index d779cf47..aa28a3f0 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -808,7 +808,9 @@ fn runNative(init: std.process.Init, opts_in: pardes.Options, detached: bool, di var want_w: c_int = 1120; var want_h: c_int = 720; var want_at: ?[2]c_int = null; - if (opts_in.geometry) |spec| geometry: { + // ...or the size an Upgrade's exec says its window had (client.zig + // `execAgain`). + if (opts_in.geometry orelse if (std.c.getenv("PARDES_JOIN_SIZE")) |e| std.mem.span(e) else null) |spec| geometry: { const x_at = std.mem.indexOfScalar(u8, spec, 'x') orelse break :geometry; const plus = std.mem.indexOfAnyPos(u8, spec, x_at, "+-") orelse spec.len; want_w = std.math.clamp(std.fmt.parseInt(c_int, spec[0..x_at], 10) catch break :geometry, 200, 16384); |
