From 1b0ce981c7a0f0feac926023ed6be53da45a36aa Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 23 Oct 2026 17:11:12 -0300 Subject: macOS: hit-test the body and the tag with layer.bodyHit and layer.tagHit, layer.hitAt is gone Co-Authored-By: Claude Opus 5.5 --- src/macos.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/macos.zig') diff --git a/src/macos.zig b/src/macos.zig index d2122967..22d2db71 100644 --- a/src/macos.zig +++ b/src/macos.zig @@ -1687,13 +1687,13 @@ export fn pardes_mouse_pixel(button_arg: c_int, kind_arg: c_int, col: u16, row: var hit: ?pardes.Mouse.BodyHit = null; for (&st.core.surface.body_layers) |*layer| { const point = source orelse break; - hit = layer.hitAt(point.x * bw, point.y * bh, bw, bh, tw, th); + hit = layer.bodyHit(point.x * bw, point.y * bh, bw, bh, tw, th); if (hit != null) break; } var tag_hit: ?pardes.TagHit = null; for (&st.core.surface.tag_layers) |*layer| { const point = source orelse break; - tag_hit = layer.hitAt(point.x * bw, point.y * bh, bw, bh, tw, th); + tag_hit = layer.tagHit(point.x * bw, point.y * bh, bw, bh, tw, th); if (tag_hit != null) break; } mouseWithHit(button_arg, kind_arg, col, row, mods, hit, tag_hit); -- cgit v1.3