From 765949f256aefcc513d0bfb46b64d315f9c2f3d2 Mon Sep 17 00:00:00 2001 From: Francesca Frangipane Date: Mon, 14 May 2018 23:21:06 -0400 Subject: 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. --- src/display.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/display.rs') 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); } } -- cgit v1.2.3-54-g00ecf