diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-15 13:46:50 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-15 17:24:42 -0300 |
| commit | 6d7b506c8a380e4dd97f337590ca079d810a360a (patch) | |
| tree | 71075c8c4383df25c6ecd5140ef75063a897b444 /src/detached/client.zig | |
| parent | 13d0d107a06d7ac5fb5f8e86c747e54603f51b4e (diff) | |
| download | pardes-6d7b506c8a380e4dd97f337590ca079d810a360a.tar.gz pardes-6d7b506c8a380e4dd97f337590ca079d810a360a.zip | |
Follow embedded PDF links through Look
Diffstat (limited to 'src/detached/client.zig')
| -rw-r--r-- | src/detached/client.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/detached/client.zig b/src/detached/client.zig index 0350ecf7..affa070e 100644 --- a/src/detached/client.zig +++ b/src/detached/client.zig @@ -101,6 +101,7 @@ pub const Client = struct { /// `cols * rows` cells: what the session is showing right now. grid: std.ArrayListUnmanaged(pardes.Cell) = .empty, cursor: ?wire.Cursor = null, + pointer_shape: pardes.Surface.PointerShape = .arrow, in: std.ArrayListUnmanaged(u8) = .empty, out: std.ArrayListUnmanaged(u8) = .empty, /// Bytes of `in` belonging to the message `next` returned last. Compacted at @@ -311,6 +312,7 @@ pub const Client = struct { } try f.apply(c.grid.items); c.cursor = f.cursor; + c.pointer_shape = f.pointer_shape; }, // The session has ended. Left for the caller to act on, and the // descriptor stays open so `deinit` is the only place that closes. @@ -351,6 +353,7 @@ pub const Client = struct { c.cols = cols; c.rows = rows; c.cursor = null; + c.pointer_shape = .arrow; } /// Take everything the kernel is holding, not one chunk of it. The server |
