[keyboard] Fix locale1 support for alternate layouts

Copy&paste error caused setting the layout to fail for non-ASCII layouts
with an alternate layout/variant.

Fixes: 812d86130 (\"[keyboard] Add support for setting the layout via locale1\")
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2023-09-02 22:12:40 +09:00
parent 102c55d67d
commit 7806d264ab

View File

@ -238,7 +238,7 @@ Config::locale1Apply()
if ( !m_additionalLayoutInfo.additionalLayout.isEmpty() )
{
layout = m_additionalLayoutInfo.additionalLayout + "," + layout;
variant = m_additionalLayoutInfo.additionalVariant + "," + layout;
variant = m_additionalLayoutInfo.additionalVariant + "," + variant;
option = m_additionalLayoutInfo.groupSwitcher;
}