summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-21 21:30:19 -0300
committerGabriel Schneider <[email protected]>2026-10-22 10:03:15 -0300
commit02841e214442c7a602877883425757b0dab3f924 (patch)
tree8e27863c52d128a6fb69d2dbf69e8b5b1df57941 /src/pardes.zig
parentb730ce12667fb75c99b97eafcfc73d7b1f8bdd13 (diff)
downloadpardes-02841e214442c7a602877883425757b0dab3f924.tar.gz
pardes-02841e214442c7a602877883425757b0dab3f924.zip
A click that takes focus glides the cursor once, straight to the click
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 2a94c0f0..72470490 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -4550,6 +4550,9 @@ pub const Pardes = struct {
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,
animate_theme_changes: bool = false,
native_images: bool = false,