From 3a928be693a14c36a9254605351b9b4685c51507 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 16 Apr 2024 13:04:30 -0500 Subject: [PATCH] window: export hasMouse hasMouse should have been marked pub --- src/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Window.zig b/src/Window.zig index 1f4d962..4afbf15 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -385,7 +385,7 @@ pub fn scroll(self: Window, n: usize) void { /// returns the mouse event if the mouse event occurred within the window. If /// the mouse event occurred outside the window, null is returned -fn hasMouse(win: Window, mouse: ?Mouse) ?Mouse { +pub fn hasMouse(win: Window, mouse: ?Mouse) ?Mouse { const event = mouse orelse return null; if (event.col >= win.x_off and event.col < (win.x_off + win.width) and