summaryrefslogtreecommitdiff
path: root/src/Core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 18:22:04 -0300
committerGabriel Schneider <[email protected]>2026-11-06 20:00:43 -0300
commiteeb59b92295e74b956d32e66c3c318e105a391db (patch)
treed7178f0b87c5740a077119705331efa3d0319547 /src/Core.zig
parentb22fa2638bca470bbd8c5ea4768eb0eaaa3e8195 (diff)
downloadpardes-eeb59b92295e74b956d32e66c3c318e105a391db.tar.gz
pardes-eeb59b92295e74b956d32e66c3c318e105a391db.zip
kinds #38, a kind's ticks and views as units of the session's origin (§17.2 B 1): a step of the session's own (a tick, a job's answer, a 9P request, any input no client sends) tells each view whose facts moved and ticks a focus changed or a deadline come, a client's input ticks only the pane its key, click or word went to (which already waits), so a client never guesses a tick and never waits for one; the tick's prefix is in its taped outcome (a Shadow's tag is the authority's from the tape, `told` and the frame's prefix gone, the dump carrying the prefix), Kind.wake says a focus change, the tick wait and Kind.repaint are gone, the post-unit flush stays for the tick after a key; the stall test asserts the replay (0 mispredicted, 0 waited)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Core.zig')
-rw-r--r--src/Core.zig10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Core.zig b/src/Core.zig
index 5496a979..65779217 100644
--- a/src/Core.zig
+++ b/src/Core.zig
@@ -1516,7 +1516,7 @@ pub fn serveFs(p: *Pardes, req: ctlfs.Req) ctlfs.Reply {
// step does: the cursor and scroll reconciled, the scripted panes
// told, and the panes it made announced to /log now rather than at
// the end of whatever the editor does next.
- pardes.Kind.step(p);
+ pardes.Kind.step(p, true);
p.sync();
p.fsReport();
// A /focus write moves the keyboard as a click does: the programs
@@ -1642,8 +1642,12 @@ pub fn update(p: *Pardes, ev: Event) void {
look.advanceLookHover(p);
},
}
- // Each kind's pane whose time has come steps, and its jobs' answers land.
- pardes.Kind.step(p);
+ // Each kind's pane a call asked a tick of steps; at a step of the
+ // session's own (an input no client sends), whose time has come too.
+ pardes.Kind.step(p, switch (ev) {
+ .key, .mouse, .resize, .paste, .command, .pointer_leave, .focus, .frontend => false,
+ else => true,
+ });
// Each pane's places find a frame's more on a tick, and on any other
// step the ones an edit or a scroll left unfound in the view.
for (p.panes) |slot| if (slot) |pane| pane.places.settle(p, pane, ev == .tick);