state: Use IM hint and purpose for layout selection

This commit is contained in:
Dorota Czaplejewicz
2022-06-03 13:35:04 +00:00
parent e6326b9b38
commit 8d0e1b4548
6 changed files with 30 additions and 3 deletions

View File

@ -462,6 +462,10 @@ Outcome:
kind: arrangement,
name: layout_name,
overlay_name: overlay,
purpose: match self.im {
InputMethod::Active(InputMethodDetails { purpose, .. }) => purpose,
InputMethod::InactiveSince(_) => ContentPurpose::Normal,
},
}
};