mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
x11: add workaround for disabling IME on gnome
GNOME doesn't list that there's a _NONE_ style at all, but it still works if you use it.
This commit is contained in:
@@ -40,6 +40,10 @@ changelog entry.
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- On X11, add a workaround for disabling IME on GNOME.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- On Windows, fixed the event loop not waking on accessibility requests.
|
- On Windows, fixed the event loop not waking on accessibility requests.
|
||||||
|
|||||||
@@ -81,7 +81,9 @@ impl InputMethod {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let preedit_style = preedit_style.unwrap_or_else(|| none_style.unwrap());
|
let preedit_style = preedit_style.unwrap_or_else(|| none_style.unwrap());
|
||||||
let none_style = none_style.unwrap_or(preedit_style);
|
// Always initialize none style even when it's not advertised, since it seems to work
|
||||||
|
// regardless...
|
||||||
|
let none_style = none_style.unwrap_or(Style::None(XIM_NONE_STYLE));
|
||||||
|
|
||||||
Some(InputMethod { im, _name: name, preedit_style, none_style })
|
Some(InputMethod { im, _name: name, preedit_style, none_style })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user