chiark / gitweb /
localed: check for partially matching converted keymaps
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Sep 2014 02:55:54 +0000 (22:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Sep 2014 02:55:54 +0000 (22:55 -0400)
commit78bd12a05a9252cf573da28394b23e2b891cbba8
treea6f1b06243583567ed451027fc176d31d13531ce
parent81fd105a5f9762fa2f2e42bc949876e32b3a126f
localed: check for partially matching converted keymaps

If a user specifies multiple X11 keymaps, with a (at least the first
one) nonempty variant, and we don't match the whole combo, use
a converted keymap which includes the variant in preference to
the default, variantless, keymap.

E.g.: We would convert X11 config "layout=fr variant=mac" to "fr-mac",
but "layout=fr,us variant=mac," to "fr", because we don't have a
converted keymap which would match "fr,us", and we don't have a legacy
mapping for "fr,us". This is unexpected, and if we cannot match both,
it is still better to match the primary mapping and use "fr-mac".
src/locale/localed.c