imservice: Invoke eekboard_context_service_set_hint_purpose unconditionally

Since eekboard_context_service_set_hint_purpose() checks if the
hint or purpose changed this doesn't cause unwanted layout reloads.

Closes: #311
This commit is contained in:
Guido Günther
2021-12-01 14:30:06 +01:00
parent 912fe0b7b7
commit 06b17907bf

View File

@ -153,6 +153,7 @@ pub mod c {
if active_changed {
(imservice.active_callback)(imservice.current.active);
}
if imservice.current.active {
unsafe {
eekboard_context_service_set_hint_purpose(
@ -163,7 +164,6 @@ pub mod c {
}
}
}
}
// TODO: this is really untested
#[no_mangle]