* Remove calls to `set_ime_allowed` * Allow IME if `text_cursor_pos` is `Some` * Only call `Window::set_ime_allowed` when necessary * allow_ime doesn't need to be atomic * Remove unused imports * Fix assignment