diff --git a/src/platform_impl/macos/appkit/view.rs b/src/platform_impl/macos/appkit/view.rs index b72b712df4..be52be28b3 100644 --- a/src/platform_impl/macos/appkit/view.rs +++ b/src/platform_impl/macos/appkit/view.rs @@ -44,9 +44,6 @@ extern_methods!( unsafe { msg_send_id![self, inputContext] } } - #[sel(visibleRect)] - pub fn visibleRect(&self) -> NSRect; - #[sel(hasMarkedText)] pub fn hasMarkedText(&self) -> bool; diff --git a/src/platform_impl/macos/view.rs b/src/platform_impl/macos/view.rs index cacbf10e8c..77781877b8 100644 --- a/src/platform_impl/macos/view.rs +++ b/src/platform_impl/macos/view.rs @@ -209,7 +209,7 @@ declare_class!( self.removeTrackingRect(tracking_rect); } - let rect = self.visibleRect(); + let rect = self.frame(); let tracking_rect = self.add_tracking_rect(rect, false); self.state.tracking_rect = Some(tracking_rect); } @@ -221,7 +221,7 @@ declare_class!( self.removeTrackingRect(tracking_rect); } - let rect = self.visibleRect(); + let rect = self.frame(); let tracking_rect = self.add_tracking_rect(rect, false); self.state.tracking_rect = Some(tracking_rect);