summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 8204915d..fb5b7f43 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -3367,23 +3367,12 @@ pub const Pardes = struct {
theme_file_generation: u32 = 0,
theme_file_pane: u8 = 0,
chrome: colors.ChromeTheme = colors.initial_chrome,
- /// The focused cursor's quad on its springs (animation.CursorGlide),
- /// the pane and view origin it was last aimed in, and the last key or
- /// click, which a blink holds for.
- cursor_glide: animation.CursorGlide = .{},
/// Every drawn frame's timings (FrameStats: the Debug box, PARDES_FRAMES).
frames: FrameStats = .{},
/// A pixel shell's own render-time motion is under way (its smooth
/// scroll, G6): the core then keeps the continuous path running, so the
/// shell draws every loop and a virtual clock moves on, as for a lift.
shell_continuous: bool = false,
- cursor_view: struct { serial: u32 = 0, line: i64 = 0, origin: [2]f32 = .{ 0, 0 }, inside: bool = true } = .{},
- /// The cursor glides from one pane to another: it may cross the grid.
- cursor_crossing: bool = false,
- /// A click took focus to another pane and its button is still down: the
- /// cursor waits where it was drawn for the release that places it.
- cursor_held: bool = false,
- input_ns: u64 = 0,
native_images: bool = false,
/// The shell can take a changed image a few rows at a time (a texture row
/// upload, a shared-memory hand-off), so a PDF selection is repainted as
@@ -3601,7 +3590,7 @@ pub const Pardes = struct {
.local = .{
// A frame, and the animations and timings that make it.
"surface", "frames", "chrome",
- "cursor_glide", "cursor_view", "cursor_crossing", "cursor_held", "frame_arena", "scratch",
+ "frame_arena", "scratch",
"needs_frame", "present_skipped", "shell_continuous", "native_image_patches",
"echo",
// Drained by every pump before its digest; a replica's queues
@@ -5180,7 +5169,6 @@ pub const Pardes = struct {
}
switch (ev) {
.key, .mouse => {
- if (ev == .key or ev.mouse.kind != .motion) p.input_ns = p.now_ns;
for (p.panes) |slot| {
if (slot) |pane| Messages.dismissMessage(p, pane);
}
@@ -6878,7 +6866,7 @@ pub const Pardes = struct {
/// and its present (vsync) paces it, at the display's rate. `nextWake`
/// is for the stepped animations, which count frames of `frame_ns`.
pub fn continuous(p: *const Pardes) bool {
- return p.cursor_glide.moving() or p.shell_continuous or panes.Pdf.moving(p);
+ return p.shell_continuous or panes.Pdf.moving(p);
}
/// For shells that only need a yes or no: macOS, which keeps its own