aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authorFrancesca Frangipane <francesca@comfysoft.net>2018-05-14 23:21:06 -0400
committerJoe Wilm <jwilm@users.noreply.github.com>2018-05-29 09:50:49 -0700
commit765949f256aefcc513d0bfb46b64d315f9c2f3d2 (patch)
treec89b8a991ceaa849be9a9b21536927fc24ca92cb /src/display.rs
parentf7172fd6e7a7eb1444007030efa39f2f21558342 (diff)
downloadalacritty-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.rs8
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);
}
}