From f752bba18f4651eee63d2d187ebfdfb0e620f8ef Mon Sep 17 00:00:00 2001 From: KENZ Date: Sat, 25 Apr 2026 09:54:04 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"Fix=20the=20candidate=20window=20posi?= =?UTF-8?q?tion=20of=20fcitx5=20which=20does't=20work=20well=20wi=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a9bcb0052944d9fbf33ce0f6a01a80a20cbcd61b. --- winit/src/window.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/winit/src/window.rs b/winit/src/window.rs index 87d35a5a..e56483f4 100644 --- a/winit/src/window.rs +++ b/winit/src/window.rs @@ -335,19 +335,9 @@ where } if self.ime_state != Some((cursor, purpose)) { - // Specify only the bottom-left position of the cursor on Linux - // because fcitx5 doesn't work well with cursor areas of - // the top-left position and height. - // The candidate window hides the composing text (a.k.a. preedit). - let (cursor_y, cursor_height) = - if cfg!(not(any(target_os = "windows", target_os = "macos"))) { - (cursor.y + cursor.height, 0.0) - } else { - (cursor.y, cursor.height) - }; self.raw.set_ime_cursor_area( - LogicalPosition::new(cursor.x, cursor_y).into(), - LogicalSize::new(cursor.width, cursor_height).into(), + LogicalPosition::new(cursor.x, cursor.y).into(), + LogicalSize::new(cursor.width, cursor.height).into(), ); self.raw.set_ime_purpose(conversion::ime_purpose(purpose));