From c2885d899c95b9c4a72786940289afd0b3ddbde8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 13:55:00 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/views.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/views.zig') diff --git a/src/views.zig b/src/views.zig index c796bd85..59910f5b 100644 --- a/src/views.zig +++ b/src/views.zig @@ -37,9 +37,8 @@ pub const fields = [_][:0]const u8{ "col_tags", "col_serial", "finder", "rects", "col_x", "col_w", "active", "jumps", "njumps", "jcur", "jump_force", - "active_column", "cursor_glide", - "cursor_view", "cursor_crossing", "cursor_held", "shell_continuous", - "input_ns", "native_images", "native_image_patches", "windowed", + "active_column", "shell_continuous", + "native_images", "native_image_patches", "windowed", "drag", "mouse_grab", "window_focused", "focus_told", "hover_col", "hover_row", "pointer_raw_col", "pointer_raw_row", "pointer_body_hit", "pointer_tag_hit", "raw_hover_intent", "pointer_inside", @@ -537,7 +536,7 @@ 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{ "cursor_glide", "cursor_view", "cursor_crossing", "cursor_held", "shell_continuous" }; +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 -- cgit v1.3