Revert "Fix the candidate window position of fcitx5 which does't work well wi…"
This reverts commit a9bcb00529.
This commit is contained in:
parent
d7595fab95
commit
f752bba18f
1 changed files with 2 additions and 12 deletions
|
|
@ -335,19 +335,9 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.ime_state != Some((cursor, purpose)) {
|
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(
|
self.raw.set_ime_cursor_area(
|
||||||
LogicalPosition::new(cursor.x, cursor_y).into(),
|
LogicalPosition::new(cursor.x, cursor.y).into(),
|
||||||
LogicalSize::new(cursor.width, cursor_height).into(),
|
LogicalSize::new(cursor.width, cursor.height).into(),
|
||||||
);
|
);
|
||||||
self.raw.set_ime_purpose(conversion::ime_purpose(purpose));
|
self.raw.set_ime_purpose(conversion::ime_purpose(purpose));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue