Commit 527c6baa authored by Ran Benita's avatar Ran Benita Committed by Peter Hutterer

xkb: fix check for appending '|' character when applying rules

There are two ways to separate multiple files in XKB include statements:
'+' will cause the later file to override the first in case of conflict,
while '|' will cause it augment it (this is done by xkbcomp). '!' is
unrelated here.
Currently, if someone tries to use '|' in a rule instead of '+', it
won't have any effect. Since '|' is practically never used, this wasn't
Signed-off-by: default avatarRan Benita <>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 392da389
......@@ -578,7 +578,7 @@ static void
Apply(const char *src, char **dst)
if (src) {
if (*src == '+' || *src == '!') {
if (*src == '+' || *src == '|') {
*dst = _Concat(*dst, src);
else {
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