summaryrefslogtreecommitdiff
path: root/dev/tui
diff options
context:
space:
mode:
Diffstat (limited to 'dev/tui')
-rw-r--r--dev/tui/tui.zig14
1 files changed, 5 insertions, 9 deletions
diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig
index 1f6b9a49..d7ea8ed6 100644
--- a/dev/tui/tui.zig
+++ b/dev/tui/tui.zig
@@ -1274,7 +1274,6 @@ const Shell = struct {
.detach = detach,
.adopt = adopt,
.upgrade = upgradeAsked,
- .newer_build = newerBuild,
.spawn = spawn,
.pty_write = ptyWrite,
.pty_resize = ptyResize,
@@ -1392,12 +1391,6 @@ const Shell = struct {
s.adoptions.ask(s.core, pane);
}
- /// A client's own build is not the session's to say (its core's host
- /// is the session's, through the tape).
- fn newerBuild(ctx: ?*anyopaque) bool {
- return of(ctx).client == null and upgrade.newer();
- }
-
fn upgradeAsked(ctx: ?*anyopaque, id: pardes.Pane.Id) void {
const pane = id.index();
const s = of(ctx);
@@ -1739,7 +1732,10 @@ const Shell = struct {
c.link.gone = true;
return true;
},
- .focus_in => s.feed(.{ .focus = true }),
+ .focus_in => {
+ s.feed(.{ .focus = true });
+ if (s.client == null) upgrade.noticeNewer(s.core);
+ },
.focus_out => {
s.feed(.pointer_leave);
s.feed(.{ .focus = false });
@@ -2220,7 +2216,7 @@ const Shell = struct {
fn search(ctx: ?*anyopaque, gen: u32) void {
const s = of(ctx);
if (s.threads_ok) return pardes.Stream.start(s.io, s.gpa, s.core, gen, s, deliverSearch);
- pardes.Stream.runHere(s.core, gen);
+ pardes.Stream.runHere(s.core, gen, true);
}
/// A draw (api.draw) on a worker, as a job is.