imservice: Rename commit_state to done to match protocol

This commit is contained in:
Dorota Czaplejewicz
2020-01-14 18:16:26 +00:00
parent 02c24a50d2
commit e3f31cc17f
2 changed files with 4 additions and 5 deletions

View File

@ -122,13 +122,12 @@ pub mod c {
#[no_mangle]
pub extern "C"
fn imservice_handle_commit_state(imservice: *mut IMService,
fn imservice_handle_done(imservice: *mut IMService,
im: *const InputMethod)
{
let imservice = check_imservice(imservice, im).unwrap();
let active_changed = imservice.current.active ^ imservice.pending.active;
imservice.serial += Wrapping(1u32);
imservice.current = imservice.pending.clone();
imservice.pending = IMProtocolState {
active: imservice.current.active,