diff options
Diffstat (limited to 'src/Core.zig')
| -rw-r--r-- | src/Core.zig | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Core.zig b/src/Core.zig index 67667695..8aecea53 100644 --- a/src/Core.zig +++ b/src/Core.zig @@ -660,11 +660,6 @@ pub fn loadRecent(p: *Pardes) void { p.db.readRecent(p); } -/// What changed written out, at the end of a step and at the end. -pub fn saveRecent(p: *Pardes) void { - p.db.writeRecent(p, false); -} - /// Whether `path` is one Recent keeps: a file on this host's disk, not /// the served tree's (`/virtual/`) nor a name never saved. pub fn recentKeeps(path: []const u8) bool { @@ -1389,6 +1384,12 @@ pub fn fsPayload(p: *const Pardes, r: ctlfs.Reply) []const u8 { }; } +/// For shells that only need a yes or no: macOS, which keeps its own +/// frame bank. +pub fn animationActive(p: *const Pardes) bool { + return p.nextWake() != null; +} + pub fn pump(p: *Pardes, host: Host) !void { p.host = host; const taped = tape.enter(p, .pump); @@ -1743,6 +1744,11 @@ pub fn windowOpacityDone(p: *Pardes, applied: u8, failure: ?[]const u8) void { p.setMessage(p.view().active, buf.print("WindowOpacity: {s}", .{reason})); } +/// What changed written out, at the end of a step and at the end. +pub fn saveRecent(p: *Pardes) void { + p.db.writeRecent(p, false); +} + /// Recompute geometry, push grid-size changes to each emulator and pty, /// fire deferred greetings. pub fn sync(p: *Pardes) void { @@ -1989,12 +1995,6 @@ pub fn nextWake(p: *const Pardes) ?u64 { return if (frames) |n| p.clock.stepped_ns + n * frame_ns else null; } -/// For shells that only need a yes or no: macOS, which keeps its own -/// frame bank. -pub fn animationActive(p: *const Pardes) bool { - return p.nextWake() != null; -} - /// Bring core time up to `now_ns`, the shell's monotonic clock: one /// `.tick` for every whole frame that has passed since it last stood /// still, so a timing lasts as long on a 144 Hz display, over ssh or |
