mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 13:51:30 +11:00
fixes from upstream
This commit is contained in:
parent
596c0edf0f
commit
4bc515d24a
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue