cedric pushed a commit to branch enlightenment-0.17.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=55af7a39c9bd9221ed1842ff82df0a6ffc5b5200

commit 55af7a39c9bd9221ed1842ff82df0a6ffc5b5200
Author: Thierry <thie...@substantiel.fr>
Date:   Fri Oct 16 13:33:58 2015 -0700

    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.
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 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 32536c9..e4a47ac 100644
--- a/src/bin/e_config.c
+++ b/src/bin/e_config.c
@@ -1171,9 +1171,9 @@ while (!e_config)
      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 8bf1d9e..7312f7a 100644
--- a/src/modules/conf_interaction/e_int_config_mouse.c
+++ b/src/modules/conf_interaction/e_int_config_mouse.c
@@ -225,7 +225,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);
 

-- 


Reply via email to