example: fix toggling IME

This commit is contained in:
DorotaC 2025-06-30 04:51:46 +02:00 committed by GitHub
parent abed32eb80
commit 0ccb8a9f87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -716,8 +716,9 @@ impl WindowState {
.cursor_position
.map(Into::into)
.unwrap_or(LogicalPosition { x: 0, y: 0 }.into());
let request_data =
ImeRequestData::default().with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into());
let request_data = ImeRequestData::default()
.with_purpose(ImePurpose::Normal)
.with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into());
let enable_request = ImeEnableRequest::new(
ImeCapabilities::new().with_purpose().with_cursor_area(),
request_data,