wlterm/kmscon: change default repeat-rate to 50
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 10:39:58 +0000 (12:39 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 10:39:58 +0000 (12:39 +0200)
Even though I really like the high repeat-rates, it might not be the best
default option. Hence, change it to some sane default.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/kmscon_conf.c
src/uterm_input.c
src/wlt_main.c

index 19672f5..eda166b 100644 (file)
@@ -100,7 +100,7 @@ static void print_help()
                "\t    --xkb-options <options>    [-]  Set XkbOptions for input devices\n"
                "\t    --xkb-repeat-delay <msecs> [250]\n"
                "\t                                 Initial delay for key-repeat in ms\n"
-               "\t    --xkb-repeat-rate <msecs>  [25]\n"
+               "\t    --xkb-repeat-rate <msecs>  [50]\n"
                "\t                                 Delay between two key-repeats in ms\n"
                "\n"
                "\t    --grab-scroll-up <grab>   [<Shift>Up]\n"
@@ -277,7 +277,7 @@ struct conf_option options[] = {
        CONF_OPTION_STRING(0, "xkb-variant", NULL, &kmscon_conf.xkb_variant, ""),
        CONF_OPTION_STRING(0, "xkb-options", NULL, &kmscon_conf.xkb_options, ""),
        CONF_OPTION_UINT(0, "xkb-repeat-delay", NULL, &kmscon_conf.xkb_repeat_delay, 250),
-       CONF_OPTION_UINT(0, "xkb-repeat-rate", NULL, &kmscon_conf.xkb_repeat_rate, 25),
+       CONF_OPTION_UINT(0, "xkb-repeat-rate", NULL, &kmscon_conf.xkb_repeat_rate, 50),
        CONF_OPTION_STRING(0, "font-engine", NULL, &kmscon_conf.font_engine, "pango"),
        CONF_OPTION_UINT(0, "font-size", NULL, &kmscon_conf.font_size, 12),
        CONF_OPTION_STRING(0, "font-name", NULL, &kmscon_conf.font_name, "monospace"),
index 2198c82..23d034e 100644 (file)
@@ -248,7 +248,7 @@ int uterm_input_new(struct uterm_input **out,
        if (repeat_delay >= 1000)
                repeat_delay = 999;
        if (!repeat_rate)
-               repeat_rate = 25;
+               repeat_rate = 50;
        if (repeat_rate >= 1000)
                repeat_rate = 999;
 
index 70bd781..253c409 100644 (file)
@@ -258,7 +258,7 @@ static void print_help()
                "Input Options:\n"
                "\t    --xkb-repeat-delay <msecs> [250]\n"
                "\t                                 Initial delay for key-repeat in ms\n"
-               "\t    --xkb-repeat-rate <msecs>  [25]\n"
+               "\t    --xkb-repeat-rate <msecs>  [50]\n"
                "\t                                 Delay between two key-repeats in ms\n",
                "wlterm");
        /*
@@ -390,7 +390,7 @@ struct conf_option options[] = {
        CONF_OPTION_UINT(0, "font-dpi", NULL, &wlt_conf.font_ppi, 96),
 
        CONF_OPTION_UINT(0, "xkb-repeat-delay", NULL, &wlt_conf.xkb_repeat_delay, 250),
-       CONF_OPTION_UINT(0, "xkb-repeat-rate", NULL, &wlt_conf.xkb_repeat_rate, 25),
+       CONF_OPTION_UINT(0, "xkb-repeat-rate", NULL, &wlt_conf.xkb_repeat_rate, 50),
 };
 
 int main(int argc, char **argv)