summaryrefslogtreecommitdiff
path: root/src/tui
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/tui.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tui/tui.zig b/src/tui/tui.zig
index 1e4b238e..e8a5c44c 100644
--- a/src/tui/tui.zig
+++ b/src/tui/tui.zig
@@ -1090,7 +1090,7 @@ test "host watch closes initial race and reloads rename-over PDF while idle" {
}
try std.testing.expect(std.mem.indexOf(u8, pane.msg[0..pane.msg_len], "reloaded") != null);
- core.native_images = true;
+ core.frontend.native_images = true;
var frame = std.heap.ArenaAllocator.init(gpa);
defer frame.deinit();
const surface = try core.render(frame.allocator());
@@ -1115,7 +1115,7 @@ const PdfWheelTarget = struct { pane: usize, page: usize };
fn nativePdfWheelTarget(core: *const pardes.Pardes, mouse: vaxis.Mouse) ?PdfWheelTarget {
if (comptime !pardes.pdf_enabled) return null;
- if (!core.native_images or mouse.type != .press or
+ if (!core.frontend.native_images or mouse.type != .press or
(mouse.button != .wheel_up and mouse.button != .wheel_down) or
mouse.col < 0 or mouse.row < 0) return null;
const col: u16 = @intCast(mouse.col);
@@ -1750,7 +1750,7 @@ fn localSession(
sh.from = 0;
if (live.on) startInput(loop, live) catch {};
if (live.on) clearNativeImages(&live.kitty, &live.vx, &live.tty);
- nc.native_images = live.on and live.vx.caps.kitty_graphics;
+ nc.frontend.native_images = live.on and live.vx.caps.kitty_graphics;
nc.unattended = !live.on;
sh.peers.alone_unattended = !live.on;
if (fs) |f| f.reset(nc);
@@ -2002,7 +2002,7 @@ const Shell = struct {
const screen = s.term() orelse return;
stopInput(s.io, &screen.thread);
screen.leave();
- s.core.native_images = false;
+ s.core.frontend.native_images = false;
s.setAttended(false);
// The stub's stdin, stdout and stderr were its terminal too.
const null_fd = libc.open("/dev/null", .{ .ACCMODE = .RDWR, .CLOEXEC = true }, @as(libc.mode_t, 0));
@@ -2596,11 +2596,11 @@ const Shell = struct {
};
const sc = s.term() orelse return;
- s.core.native_image_patches = sc.feed.shm.load(.acquire);
+ s.core.frontend.native_image_patches = sc.feed.shm.load(.acquire);
if (sc.caps_pending and sc.on and sc.vx.queries_done.load(.unordered)) {
sc.caps_pending = false;
sc.vx.enableDetectedFeatures(sc.tty.writer()) catch {};
- s.core.native_images = sc.vx.caps.kitty_graphics;
+ s.core.frontend.native_images = sc.vx.caps.kitty_graphics;
if (sc.vx.caps.kitty_graphics) kittyShmProbe(sc.tty.writer(), &sc.feed);
sc.vx.queueRefresh();
s.core.needs_frame = true;