diff --git a/crates/nsh-platform-macos/src/popup.rs b/crates/nsh-platform-macos/src/popup.rs index 0013947f72..a8a808176f 100644 --- a/crates/nsh-platform-macos/src/popup.rs +++ b/crates/nsh-platform-macos/src/popup.rs @@ -617,6 +617,7 @@ fn takes_pointer(popup: &Popup, at: NSPoint) -> bool { /// overlays where it takes the pointer (the newest on top), else /// `window`. The test agent posts its pointer as the system would deliver /// it. +#[cfg(feature = "dev")] pub(crate) fn window_at(window: &NSWindow, at: NSPoint) -> (Retained, NSPoint) { let screen = window.convertPointToScreen(at); OPEN.with_borrow(|o| {