diff options
Diffstat (limited to 'src/views.zig')
| -rw-r--r-- | src/views.zig | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/views.zig b/src/views.zig index 59910f5b..7e087523 100644 --- a/src/views.zig +++ b/src/views.zig @@ -37,7 +37,7 @@ pub const fields = [_][:0]const u8{ "col_tags", "col_serial", "finder", "rects", "col_x", "col_w", "active", "jumps", "njumps", "jcur", "jump_force", - "active_column", "shell_continuous", + "active_column", "native_images", "native_image_patches", "windowed", "drag", "mouse_grab", "window_focused", "focus_told", "hover_col", "hover_row", "pointer_raw_col", "pointer_raw_row", @@ -534,16 +534,11 @@ pub fn deinit(p: *Pardes) void { } } -/// What drawing a view keeps of its own (its animations, its panels as -/// presented), kept from a frame drawn while it was out. -const drawn_fields = [_][:0]const u8{"shell_continuous"}; - /// Each view but the live one drawn and presented, the live one put back /// after exactly as it was: no digested field moves, so a replica that -/// draws nothing (and skips this) stays the same. A view drawn keeps only -/// what its drawing made (`drawn_fields`); whatever its unpark brought -/// inside a changed text is not kept, and is done again when it is next -/// live. Before the live one's frame: the surface after the pump is its. +/// draws nothing (and skips this) stays the same. A view drawn keeps +/// nothing of its drawing: whatever its unpark brought inside a changed +/// text is not kept, and is done again when it is next live. Before the live one's frame: the surface after the pump is its. pub fn drawOthers(p: *Pardes, h: pardes.Host) !void { const live = p.view; const v = h.vtable; @@ -581,7 +576,6 @@ pub const Present = struct { ctx: ?*anyopaque, f: ?*const fn (?*anyopaque, *cons /// and a replica that draws nothing would keep them). fn drawParked(p: *Pardes, k: u8, present: Present) !void { try unparked(p, k, present, drawLive); - copy(&drawn_fields, &p.parked[k].?.view, p); } fn drawLive(present: Present, p: *Pardes) anyerror!void { |
