mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 14:49:07 -04:00
winit-core: fix set_ime_allowed always panicing
This commit is contained in:
@@ -1136,7 +1136,7 @@ pub trait Window: AsAny + Send + Sync + fmt::Debug {
|
||||
let action = if allowed {
|
||||
let position = LogicalPosition::new(0, 0);
|
||||
let size = LogicalSize::new(0, 0);
|
||||
let ime_caps = ImeCapabilities::new().without_hint_and_purpose().with_cursor_area();
|
||||
let ime_caps = ImeCapabilities::new().with_hint_and_purpose().with_cursor_area();
|
||||
let request_data = ImeRequestData {
|
||||
hint_and_purpose: Some((ImeHint::NONE, ImePurpose::Normal)),
|
||||
// WARNING: there's nothing sensible to use here by default.
|
||||
|
||||
@@ -50,3 +50,7 @@ changelog entry.
|
||||
- On Web, avoid throwing an exception in `EventLoop::run_app`, instead preferring to return to the caller.
|
||||
This requires passing a `'static` application to ensure that the application state will live as long as necessary.
|
||||
- On Web, the event loop can now always be re-created once it has finished running.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed panic when calling `Window::set_ime_allowed`.
|
||||
|
||||
Reference in New Issue
Block a user