diff options
| -rw-r--r-- | src/tui/tui.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tui/tui.zig b/src/tui/tui.zig index af274b3f..df51960e 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -759,6 +759,15 @@ pub fn remote(init: std.process.Init, opts: pardes.Options, path: []const u8, se // Its predicted echo judged and caught up, once a frame. if (r.echoFrame()) link.dirty = true; if (link.dirty) remote_link.draw(&sh); + // The tty's own motions (its glide, a jump's trail) drawn a frame + // a tick while they move, as waitInput wakes the local loop: a + // wheel's glide was drawn only at the next event. After the + // draw, which starts a glide, and after the last iteration's + // wakes, as the latest asked for is the one kept. + if (sh.moving()) { + link.dirty = true; + requestWake(io, @intCast(pardes.frame_ns / std.time.ns_per_ms)); + } const first = (loop.tryEvent() catch null) orelse idle: { // Idle, its frame drawn: the next key needs no copy taken. r.ready(); |
