summaryrefslogtreecommitdiff
path: root/src/Core.zig
diff options
context:
space:
mode:
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);