From 4bc515d24a8b1ad6a5579cd0f44c86c727793a69 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 7 Sep 2023 10:04:35 +1000 Subject: [PATCH] fixes from upstream --- src/platform_impl/macos/appkit/view.rs | 3 --- src/platform_impl/macos/view.rs | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/platform_impl/macos/appkit/view.rs b/src/platform_impl/macos/appkit/view.rs index b72b712d..be52be28 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 ef03dd7a..09b42337 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);