mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
winit-core/window: wrap ImeCapabilities in struct
To prevent user from using `::all()` and thus writing not forward compatible code wrap the bitflags struct and provide simpler interface to it.
This commit is contained in:
@@ -2112,7 +2112,7 @@ impl UnownedWindow {
|
||||
};
|
||||
|
||||
if let Some((position, size)) = state.cursor_area {
|
||||
if capabilities.contains(ImeCapabilities::CURSOR_AREA) {
|
||||
if capabilities.cursor_area() {
|
||||
self.set_ime_cursor_area(position, size);
|
||||
} else {
|
||||
warn!("discarding IME cursor area update without capability enabled.");
|
||||
|
||||
Reference in New Issue
Block a user