mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
example: fix toggling IME
This commit is contained in:
@@ -716,8 +716,9 @@ impl WindowState {
|
|||||||
.cursor_position
|
.cursor_position
|
||||||
.map(Into::into)
|
.map(Into::into)
|
||||||
.unwrap_or(LogicalPosition { x: 0, y: 0 }.into());
|
.unwrap_or(LogicalPosition { x: 0, y: 0 }.into());
|
||||||
let request_data =
|
let request_data = ImeRequestData::default()
|
||||||
ImeRequestData::default().with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into());
|
.with_purpose(ImePurpose::Normal)
|
||||||
|
.with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into());
|
||||||
let enable_request = ImeEnableRequest::new(
|
let enable_request = ImeEnableRequest::new(
|
||||||
ImeCapabilities::new().with_purpose().with_cursor_area(),
|
ImeCapabilities::new().with_purpose().with_cursor_area(),
|
||||||
request_data,
|
request_data,
|
||||||
|
|||||||
Reference in New Issue
Block a user