summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index 24061251..e4d69281 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -2502,6 +2502,7 @@ fn localSession(
while (!core.quit) {
pardes.turn.bump(&pardes.turn.restores);
try core.pump(host);
+ upgrade.locate();
// Asked in the step (the word), done between steps: the session whole.
if (shell.upgrade_asked) |pane| shell.upgradeNow(pane);
// A window asked for again, or an adopted shell, from the daemon's
@@ -3138,7 +3139,10 @@ fn dispatch(g: *Gui, in: *Input, sev: *const c.SDL_Event) void {
in.close();
},
c.SDL_EVENT_WINDOW_CLOSE_REQUESTED => in.close(),
- c.SDL_EVENT_WINDOW_FOCUS_GAINED => in.post(.{ .focus = true }),
+ c.SDL_EVENT_WINDOW_FOCUS_GAINED => {
+ in.post(.{ .focus = true });
+ if (in.core) |core| upgrade.noticeNewer(core);
+ },
c.SDL_EVENT_WINDOW_FOCUS_LOST => in.post(.{ .focus = false }),
c.SDL_EVENT_WINDOW_MOUSE_LEAVE => {
g.pointer_present = false;
@@ -4060,7 +4064,6 @@ const Shell = struct {
if (!upgrade.writeDump(at, bytes)) break :failed std.fmt.bufPrint(&why, "Upgrade: the session's dump could not be written to {s}; it stays as it is", .{at[0..@min(at.len, 600)]}) catch "Upgrade: its dump could not be written";
rec.dump = at;
rec.old = upgrade.openSelf();
- host_io.Shell.unlinkOwnedRcs();
daemon.upgraded();
if (s.fs) |f| f.flushOut();
const err_words = upgrade.exec(s.gpa, path, -1, &rec);