summaryrefslogtreecommitdiff
path: root/src/macos.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-23 17:11:12 -0300
committerGabriel Schneider <[email protected]>2026-10-23 17:11:12 -0300
commit1b0ce981c7a0f0feac926023ed6be53da45a36aa (patch)
treea48da81e28d4867dd865e7ac62d5e3738a1b1fb5 /src/macos.zig
parent80314064f6e81c8828340e010202b446f0e1f36d (diff)
downloadpardes-1b0ce981c7a0f0feac926023ed6be53da45a36aa.tar.gz
pardes-1b0ce981c7a0f0feac926023ed6be53da45a36aa.zip
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 <[email protected]>
Diffstat (limited to 'src/macos.zig')
-rw-r--r--src/macos.zig4
1 files changed, 2 insertions, 2 deletions
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);