Offset Preedit overlay by cursor height

This commit is contained in:
Héctor Ramón Jiménez 2025-11-25 22:42:11 +01:00
parent 71061b53bb
commit d8f12d74f8
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -229,7 +229,7 @@ where
self.preedit.take().unwrap_or_else(Preedit::new);
overlay.update(
cursor.position(),
cursor,
&preedit,
self.state.background_color(),
&self.renderer,
@ -357,12 +357,12 @@ where
fn update(
&mut self,
position: Point,
cursor: Rectangle,
preedit: &input_method::Preedit,
background: Color,
renderer: &Renderer,
) {
self.position = position;
self.position = cursor.position() + Vector::new(0.0, cursor.height);
let background = Color {
a: 1.0,