macOS: Implement NSTextInputClient (#518)

Fixes #263
This commit is contained in:
Francesca Frangipane 2018-05-17 21:28:30 -04:00 committed by GitHub
parent 8440091a4e
commit dec728cfa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 648 additions and 147 deletions

View file

@ -310,6 +310,14 @@ impl Window {
}
}
#[inline]
pub fn set_ime_spot(&self, x: i32, y: i32) {
match self {
&Window::X(ref w) => w.send_xim_spot(x as i16, y as i16),
&Window::Wayland(_) => (),
}
}
#[inline]
pub fn get_current_monitor(&self) -> RootMonitorId {
match self {