From d8e5fc18f5923c4213de1cb4105a677e725200af Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 21:02:51 -0300 Subject: fields #41, a view's frontend is one field: windowed, native_images and native_image_patches, the three fields Event.frontend carries, are the session's frontend, a Frontend, so update's frontend arm is p.frontend = f where it copied them one by one; native_image_patches, each process's own, is said so on Frontend (its replica .local), where the session's list said it, so the digest and a dump leave it out as before, and the tape watches frontend where it watched the three (a host's write of patches alone, which only drawing reads, is no longer a set of its own on the tape); the reads in 22 files say p.frontend.native_images (macos.zig's by text, built nowhere here; dump.zig, the persistence agent's, only where it names native_images); views.zig's per-view fields name frontend; a dump written before this change loads it as the default once: an Upgrade or Restore from it comes back as a terminal's view without native images until its frontend says otherwise (a window's says so at once), and the wire's semantics change; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), snap all 108 scripts ok; gui unit-test 1518/1519 (1 skipped) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/gui/gui.zig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui') diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 99609e5e..d6efa27c 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1757,9 +1757,9 @@ fn localSession( defer core.deinit(); g.hit_core = core; defer g.hit_core = null; - core.windowed = true; - core.native_images = true; - core.native_image_patches = true; + core.frontend.windowed = true; + core.frontend.native_images = true; + core.frontend.native_image_patches = true; observeGuiFont(g, core); syncTaglineFont(g, core); syncLigatures(g, core); @@ -1895,11 +1895,11 @@ fn localSession( shell.stopPtys(); clearNativeImages(g); g.prepared_images.clearRetainingCapacity(); - nc.native_images = true; - nc.native_image_patches = true; + nc.frontend.native_images = true; + nc.frontend.native_image_patches = true; nc.host = host; if (fs) |f| f.reset(nc); - nc.windowed = true; + nc.frontend.windowed = true; core.deinit(); core = nc; frame_probe = &nc.frames; // the old core's ring went with it @@ -2969,7 +2969,7 @@ fn wheelAt(g: *Gui, in: *Input, w: WheelTurn, mc: MouseCell) void { }; if (hit) |id| { const pdf_target = if (comptime pardes.pdf_enabled) - core.native_images and core.panes[id].?.pdfPage() != null + core.frontend.native_images and core.panes[id].?.pdfPage() != null else false; const pane = core.panes[id].?; -- cgit v1.3