From bc09dfeefe1bc4f32e63cbf6ca374c97e6d6aba6 Mon Sep 17 00:00:00 2001 From: Thierry Date: Fri, 16 Oct 2015 13:29:19 -0700 Subject: [PATCH] mouse_config: fix accel threshold and numerator limits. man xset => If the `threshold' parameter is provided and 0, the `acceleration' parameter will be used in the exponent of a more natural and continuous formula, giving precise control for slow motion but big reach for fast motion, and a progressive transition for motions in between. Recommended `acceleration' value in this case is 3/2 to 3, but not limited to that range. --- src/bin/e_config.c | 4 ++-- src/modules/conf_interaction/e_int_config_mouse.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index 1095d98b0..7ec383e58 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -1463,9 +1463,9 @@ e_config_load(void) E_CONFIG_LIMIT(e_config->clientlist_limit_caption_len, 0, 1); E_CONFIG_LIMIT(e_config->clientlist_max_caption_len, 2, E_CLIENTLIST_MAX_CAPTION_LEN); - E_CONFIG_LIMIT(e_config->mouse_accel_numerator, 1, 10); + E_CONFIG_LIMIT(e_config->mouse_accel_numerator, 1, 30); E_CONFIG_LIMIT(e_config->mouse_accel_denominator, 1, 10); - E_CONFIG_LIMIT(e_config->mouse_accel_threshold, 1, 10); + E_CONFIG_LIMIT(e_config->mouse_accel_threshold, 0, 10); E_CONFIG_LIMIT(e_config->menu_favorites_show, 0, 1); E_CONFIG_LIMIT(e_config->menu_apps_show, 0, 1); diff --git a/src/modules/conf_interaction/e_int_config_mouse.c b/src/modules/conf_interaction/e_int_config_mouse.c index fcd83d9b1..722c477b6 100644 --- a/src/modules/conf_interaction/e_int_config_mouse.c +++ b/src/modules/conf_interaction/e_int_config_mouse.c @@ -207,7 +207,7 @@ _basic_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dial ob = e_widget_label_add(evas, _("Threshold")); e_widget_framelist_object_append(of, ob); - ob = e_widget_slider_add(evas, 1, 0, _("%1.0f"), 1.0, 10.0, 1.0, 0, + ob = e_widget_slider_add(evas, 1, 0, _("%1.0f"), 0.0, 10.0, 1.0, 0, &(cfdata->threshold), NULL, 100); e_widget_framelist_object_append(of, ob);