Commit c23b6f5f authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Merge branch 'layout' into 'master'

layouts: Stop assuming that layout name always changes on switch

Closes #276

See merge request !450
parents e4f1b121 4fdce280
Pipeline #66551 passed with stages
in 59 minutes and 2 seconds
......@@ -213,7 +213,16 @@ fn set_visible_layout(
layout_id: LayoutId,
) {
match layout_id {
LayoutId::System { kind, name } => set_layout(kind, name),
LayoutId::System { kind, name } => {
unsafe {
use std::ptr;
manager::c::eekboard_context_service_set_overlay(
manager,
ptr::null(),
);
}
set_layout(kind, name);
}
LayoutId::Local(name) => {
let name = CString::new(name.as_str()).unwrap();
let name_ptr = name.as_ptr();
......
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