Commit 3cbfd835 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

imservice: Increment serials on receiving done, not sending commit

No idea how that managed to stay undetected for so long.
parent 6e7c0e6f
...@@ -149,6 +149,8 @@ pub mod c { ...@@ -149,6 +149,8 @@ pub mod c {
..IMProtocolState::default() ..IMProtocolState::default()
}; };
imservice.serial += Wrapping(1u32);
if active_changed { if active_changed {
(imservice.active_callback)(imservice.current.active); (imservice.active_callback)(imservice.current.active);
if imservice.current.active { if imservice.current.active {
...@@ -404,7 +406,6 @@ impl IMService { ...@@ -404,7 +406,6 @@ impl IMService {
unsafe { unsafe {
c::eek_input_method_commit(self.im, self.serial.0) c::eek_input_method_commit(self.im, self.serial.0)
} }
self.serial += Wrapping(1u32);
Ok(()) Ok(())
}, },
false => Err(SubmitError::NotActive), false => Err(SubmitError::NotActive),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment