Set cursor width to 1.0 in IME requests

This commit is contained in:
Héctor Ramón Jiménez 2025-11-25 22:27:01 +01:00
parent d22da7d261
commit 2804aff5b2
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 2 additions and 2 deletions

View file

@ -370,7 +370,7 @@ where
InputMethod::Enabled {
cursor: Rectangle::new(
position,
Size::new(0.0, f32::from(line_height)),
Size::new(1.0, f32::from(line_height)),
),
purpose: input_method::Purpose::Normal,
preedit: state.preedit.as_ref().map(input_method::Preedit::as_ref),

View file

@ -430,7 +430,7 @@ where
InputMethod::Enabled {
cursor: Rectangle::new(
Point::new(x, text_bounds.y),
Size::new(0.0, text_bounds.height),
Size::new(1.0, text_bounds.height),
),
purpose: if self.is_secure {
input_method::Purpose::Secure