diff options
author | Francesca Frangipane <francesca@comfysoft.net> | 2018-05-14 23:21:06 -0400 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-05-29 09:50:49 -0700 |
commit | 765949f256aefcc513d0bfb46b64d315f9c2f3d2 (patch) | |
tree | c89b8a991ceaa849be9a9b21536927fc24ca92cb /src/display.rs | |
parent | f7172fd6e7a7eb1444007030efa39f2f21558342 (diff) | |
download | alacritty-765949f256aefcc513d0bfb46b64d315f9c2f3d2.tar.gz alacritty-765949f256aefcc513d0bfb46b64d315f9c2f3d2.zip |
Update to glutin 0.16.0
Note that `WM_CLASS` is now set to `"alacritty", "Alacritty"`
instead of the previous value of `"Alacritty", "Alacritty"`. This
seems to be more standard.
This also contains some revised recommendations for installing the
`.desktop` file.
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display.rs b/src/display.rs index a237a10f..733c66e8 100644 --- a/src/display.rs +++ b/src/display.rs @@ -411,7 +411,7 @@ impl Display { self.window.get_window_id() } - /// Adjust the XIM editor position according to the new location of the cursor + /// Adjust the IME editor position according to the new location of the cursor pub fn update_ime_position(&mut self, terminal: &Term) { use index::{Point, Line, Column}; use term::SizeInfo; @@ -420,8 +420,8 @@ impl Display { cell_height: ch, padding_x: px, padding_y: py, ..} = *terminal.size_info(); - let nspot_y = (py + (row + 1) as f32 * ch) as i16; - let nspot_x = (px + col as f32 * cw) as i16; - self.window().send_xim_spot(nspot_x, nspot_y); + let nspot_y = (py + (row + 1) as f32 * ch) as i32; + let nspot_x = (px + col as f32 * cw) as i32; + self.window().set_ime_spot(nspot_x, nspot_y); } } |