aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src
diff options
context:
space:
mode:
authorKhinenw <deu07115@gmail.com>2021-01-15 17:48:30 +0900
committerGitHub <noreply@github.com>2021-01-15 08:48:30 +0000
commit3ed9f9ac388d142c4ad9ebba3a9fe6e17ccc3b0e (patch)
treef40f9d5cd02711acfac27187f295bf11e54ffff1 /alacritty/src
parent80f7adf20f1fcaf6323ea905095404de71bf98a2 (diff)
downloadr-alacritty-3ed9f9ac388d142c4ad9ebba3a9fe6e17ccc3b0e.tar.gz
r-alacritty-3ed9f9ac388d142c4ad9ebba3a9fe6e17ccc3b0e.tar.bz2
r-alacritty-3ed9f9ac388d142c4ad9ebba3a9fe6e17ccc3b0e.zip
Add IME support for Windows
Diffstat (limited to 'alacritty/src')
-rw-r--r--alacritty/src/window.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs
index 418994ed..3661d406 100644
--- a/alacritty/src/window.rs
+++ b/alacritty/src/window.rs
@@ -421,7 +421,6 @@ impl Window {
}
/// Adjust the IME editor position according to the new location of the cursor.
- #[cfg(not(windows))]
pub fn update_ime_position(&mut self, point: Point, size: &SizeInfo) {
let nspot_x = f64::from(size.padding_x() + point.col.0 as f32 * size.cell_width());
let nspot_y = f64::from(size.padding_y() + (point.line.0 + 1) as f32 * size.cell_height());
@@ -429,10 +428,6 @@ impl Window {
self.window().set_ime_position(PhysicalPosition::new(nspot_x, nspot_y));
}
- /// No-op, since Windows does not support IME positioning.
- #[cfg(windows)]
- pub fn update_ime_position(&mut self, _point: Point, _size_info: &SizeInfo) {}
-
pub fn swap_buffers(&self) {
self.windowed_context.swap_buffers().expect("swap buffers");
}