fixes from upstream

This commit is contained in:
Alex Janka 2023-09-07 10:04:35 +10:00
parent 596c0edf0f
commit 4bc515d24a
2 changed files with 2 additions and 5 deletions

View file

@ -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;

View file

@ -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);