diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 13:55:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 15:25:19 -0300 |
| commit | c2885d899c95b9c4a72786940289afd0b3ddbde8 (patch) | |
| tree | 3a4d9086eba674c2198abc526611258b098328b2 /src/surface.zig | |
| parent | 23c9932afe9bbf01aa84d780e9030dfb6e333475 (diff) | |
| download | pardes-c2885d899c95b9c4a72786940289afd0b3ddbde8.tar.gz pardes-c2885d899c95b9c4a72786940289afd0b3ddbde8.zip | |
the cursor's ease leaves the core for the window: the core no longer runs the caret's springs (Pardes.cursor_glide, cursor_view, cursor_crossing, cursor_held, input_ns, draw.zig's glideCursor, focusedCursorBox and PaneFrame) nor hands a quad on (Chrome.cursor_glide, cursor_alpha, cursor_quad, cursor_idle_ms); the window's Caret eases its own quad on critically damped springs, on its own clock, from the cursor and the focused body the Surface shows (a jump glides, its leading corners first and bowing a little on a long one, a step eases, typing keeps up, a scroll or a pane's move carries it with its text), with the default flavour's pace and drawn as a quad only while it moves; the blink stays the window's as it was, now timed from the window's own last key or click; the core's caret tests go (with no motion a focus switch asks for no frames; the caret is its own body; the focused cursor glides a jump; a terminal's cursor lands with scrolling output; focus moved to another column glides; a click that takes focus glides once; focus moving to a pane with no cursor lets the session go idle) and the window's caret has one of its own, the glide tests feeding it as the frame does; a click that takes focus no longer holds the caret for its release; while the caret glides the window asks for frames on the continuous path its glide uses (a step of the loop that cleared it left a frame mid-glide on screen, five GUI goldens caught it); GUI goldens unchanged
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/surface.zig')
| -rw-r--r-- | src/surface.zig | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/surface.zig b/src/surface.zig index 998e3230..ec4d73b1 100644 --- a/src/surface.zig +++ b/src/surface.zig @@ -290,16 +290,6 @@ pub const Chrome = struct { grip_focus_ring: [3]u8 = .{ 0, 0, 0 }, /// A dirty pane's button fill. grip_dirty: [3]u8 = .{ 0, 0, 0 }, - /// The focused cursor's quad (four corners, x then y, in grid cells, top - /// left clockwise): `cursor_glide` bit 1 says there is one, bit 0 that - /// it glides, when a pixel shell draws it at `cursor_alpha` in place of - /// its cursors (as it does while it blinks, from `cursor_idle_ms`, the - /// time since the last key or click when the frame was made; maxInt, - /// no blink). - cursor_glide: u8 = 0, - cursor_alpha: f32 = 1, - cursor_quad: [8]f32 = @splat(0), - cursor_idle_ms: u32 = std.math.maxInt(u32), /// The rule between a pane's tag and its body; null is halfway between /// the tag's ground and the page the shell actually draws. tag_rule: ?[3]u8 = null, |
