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:
@ -153,14 +153,14 @@ pub mod c {
|
|||||||
|
|
||||||
if active_changed {
|
if active_changed {
|
||||||
(imservice.active_callback)(imservice.current.active);
|
(imservice.active_callback)(imservice.current.active);
|
||||||
if imservice.current.active {
|
}
|
||||||
unsafe {
|
if imservice.current.active {
|
||||||
eekboard_context_service_set_hint_purpose(
|
unsafe {
|
||||||
imservice.state_manager,
|
eekboard_context_service_set_hint_purpose(
|
||||||
imservice.current.content_hint.bits(),
|
imservice.state_manager,
|
||||||
imservice.current.content_purpose.clone() as u32,
|
imservice.current.content_hint.bits(),
|
||||||
);
|
imservice.current.content_purpose.clone() as u32,
|
||||||
}
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user