summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-10-23 20:59:27 +0200
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-10-27 18:06:43 +0200
commit2843c80c5bcb38163088440470ba88ff6a76fb54 (patch)
treed6f1c5d2a312878d61fef712617184c864278977 /tests
parentae78864cc96b7980f59b3540b73027d2cfae87ba (diff)
xkb: use system defaults instead of "us" for layout
libxkbcommon has a configure option to set the default values for the RMLVO's (if they are passed as NULL or "" - we use "" so it'd be safe to print). If they are not specified there, it's just "us" like we currently do have. But if they are specified, we should most likely defer to it. We do the same for the model field, instead of hardcoding "evdev". The rules field remains hardcoded to "evdev", because we rely on it when doing the evdev scancode-to-keycode +8 mapping. Signed-off-by: Ran Benita <ran234@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_input.c b/tests/test_input.c
index 7a4e083..74a0916 100644
--- a/tests/test_input.c
+++ b/tests/test_input.c
@@ -160,7 +160,7 @@ static void print_help()
TEST_HELP
"\n"
"Input Device Options:\n"
- "\t --xkb-layout <layout> [us] Set XkbLayout for input devices\n"
+ "\t --xkb-layout <layout> [-] Set XkbLayout for input devices\n"
"\t --xkb-variant <variant> [-] Set XkbVariant for input devices\n"
"\t --xkb-options <options> [-] Set XkbOptions for input devices\n",
"test_input");
@@ -176,7 +176,7 @@ static void print_help()
struct conf_option options[] = {
TEST_OPTIONS,
- CONF_OPTION_STRING(0, "xkb-layout", NULL, &input_conf.xkb_layout, "us"),
+ CONF_OPTION_STRING(0, "xkb-layout", NULL, &input_conf.xkb_layout, ""),
CONF_OPTION_STRING(0, "xkb-variant", NULL, &input_conf.xkb_variant, ""),
CONF_OPTION_STRING(0, "xkb-options", NULL, &input_conf.xkb_options, ""),
};