On 03/19/2007 07:14, Christopher Michael wrote:
Ravenlock wrote:
Hello,

Please find attached a patchset that will add a configuration panel that will allow a user to control the mouse acceleration in X.


Ravenlock,

This will not apply against a current cvs due to the e_config generation being different, can you resend ?


Please find attached an updated version of the offending file. Please let me know if you have any further trouble. :)

dh





--
Regards,
Ravenlock
Index: e17/apps/e/src/bin/Makefile.am
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/Makefile.am,v
retrieving revision 1.176
diff -u -r1.176 Makefile.am
--- e17/apps/e/src/bin/Makefile.am      2 Mar 2007 17:00:20 -0000       1.176
+++ e17/apps/e/src/bin/Makefile.am      10 Mar 2007 03:49:48 -0000
@@ -187,7 +187,9 @@
 e_int_config_borders.h \
 e_int_config_desk.h \
 e_int_config_clientlist.h \
-e_fm_prop.h
+e_fm_prop.h \
+e_int_config_mouse.h \
+e_mouse.h
  
 enlightenment_src = \
 e_user.c \
@@ -350,6 +352,8 @@
 e_int_config_desk.c \
 e_fm_prop.c \
 e_int_config_clientlist.c \
+e_int_config_mouse.c \
+e_mouse.c \
 $(ENLIGHTENMENTHEADERS)
 
 enlightenment_SOURCES = \
Index: e17/apps/e/src/bin/e_config.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.228
diff -u -r1.228 e_config.c
--- e17/apps/e/src/bin/e_config.c       2 Mar 2007 17:00:20 -0000       1.228
+++ e17/apps/e/src/bin/e_config.c       10 Mar 2007 03:49:49 -0000
@@ -511,6 +511,10 @@
    E_CONFIG_VAL(D, T, clientlist_separate_iconified_apps, INT);
    E_CONFIG_VAL(D, T, clientlist_warp_to_iconified_desktop, INT);
    
+   E_CONFIG_VAL(D, T, mouse_accel_numerator, INT);
+   E_CONFIG_VAL(D, T, mouse_accel_denominator, INT);
+   E_CONFIG_VAL(D, T, mouse_accel_threshold, INT);
+
    E_CONFIG_VAL(D, T, border_raise_on_mouse_action, INT);
    E_CONFIG_VAL(D, T, border_raise_on_focus, INT);
    E_CONFIG_VAL(D, T, desk_flip_wrap, INT);
@@ -1337,6 +1341,12 @@
    e_config->clientlist_warp_to_iconified_desktop = 0;
    IFCFGEND;
 
+   IFCFG(0x0112);
+   e_config->mouse_accel_numerator = 2;
+   e_config->mouse_accel_denominator = 1;
+   e_config->mouse_accel_threshold = 4;
+   IFCFGEND;
+
    e_config->config_version = E_CONFIG_FILE_VERSION;   
      
 #if 0 /* example of new config */
@@ -1455,6 +1465,10 @@
    E_CONFIG_LIMIT(e_config->clientlist_separate_iconified_apps, 0, 2);
    E_CONFIG_LIMIT(e_config->clientlist_warp_to_iconified_desktop, 0, 1);
    
+   E_CONFIG_LIMIT(e_config->mouse_accel_numerator, 1, 10);
+   E_CONFIG_LIMIT(e_config->mouse_accel_denominator, 1, 10);
+   E_CONFIG_LIMIT(e_config->mouse_accel_threshold, 1, 10);
+
    /* FIXME: disabled auto apply because it causes problems */
    e_config->cfgdlg_auto_apply = 0;
    /* FIXME: desklock personalized password id disabled for security reasons */
Index: e17/apps/e/src/bin/e_config.h
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_config.h,v
retrieving revision 1.143
diff -u -r1.143 e_config.h
--- e17/apps/e/src/bin/e_config.h       2 Mar 2007 17:00:20 -0000       1.143
+++ e17/apps/e/src/bin/e_config.h       10 Mar 2007 03:49:50 -0000
@@ -52,7 +52,7 @@
 /* increment this whenever a new set of config values are added but the users
  * config doesn't need to be wiped - simply new values need to be put in
  */
-#define E_CONFIG_FILE_GENERATION 0x0111
+#define E_CONFIG_FILE_GENERATION 0x0112
 #define E_CONFIG_FILE_VERSION    ((E_CONFIG_FILE_EPOCH << 16) | 
E_CONFIG_FILE_GENERATION)
 
 #define E_EVAS_ENGINE_DEFAULT      0
@@ -253,6 +253,10 @@
    int         clientlist_separate_iconified_apps;
    int         clientlist_warp_to_iconified_desktop;
 
+   int         mouse_accel_numerator;
+   int         mouse_accel_denominator;
+   int         mouse_accel_threshold;
+   
    int         display_res_restore; // GUI
    int         display_res_width; // GUI
    int         display_res_height; // GUI
Index: e17/apps/e/src/bin/e_configure.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_configure.c,v
retrieving revision 1.90
diff -u -r1.90 e_configure.c
--- e17/apps/e/src/bin/e_configure.c    21 Feb 2007 00:05:27 -0000      1.90
+++ e17/apps/e/src/bin/e_configure.c    10 Mar 2007 03:49:50 -0000
@@ -418,6 +418,7 @@
    cat = _e_configure_category_add(eco, _("Keyboard & Mouse"), 
"enlightenment/behavior");
    _e_configure_item_add(cat, _("Key Bindings"), "enlightenment/keys", 
e_int_config_keybindings);
    _e_configure_item_add(cat, _("Mouse Bindings"), 
"enlightenment/mouse_clean", e_int_config_mousebindings);
+   _e_configure_item_add(cat, _("Mouse Acceleration"), 
"enlightenment/mouse_clean", e_int_config_mouse);
 
    cat = _e_configure_category_add(eco, _("Windows"), "enlightenment/windows");
    _e_configure_item_add(cat, _("Window Display"), "enlightenment/windows", 
e_int_config_window_display);
Index: e17/apps/e/src/bin/e_includes.h
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_includes.h,v
retrieving revision 1.148
diff -u -r1.148 e_includes.h
--- e17/apps/e/src/bin/e_includes.h     21 Feb 2007 00:05:27 -0000      1.148
+++ e17/apps/e/src/bin/e_includes.h     10 Mar 2007 03:49:50 -0000
@@ -163,3 +163,6 @@
 #include "e_int_config_desk.h"
 #include "e_int_config_clientlist.h"
 #include "e_fm_prop.h"
+#include "e_int_config_mouse.h"
+#include "e_int_config_mouse.h"
+#include "e_int_config_mouse.h"
Index: e17/apps/e/src/bin/e_main.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_main.c,v
retrieving revision 1.201
diff -u -r1.201 e_main.c
--- e17/apps/e/src/bin/e_main.c 2 Mar 2007 17:00:20 -0000       1.201
+++ e17/apps/e/src/bin/e_main.c 10 Mar 2007 03:49:51 -0000
@@ -785,6 +785,14 @@
        _e_main_shutdown(-1);
      }
      
+   TS("mouse");     
+   /* setup mouse accel */
+   if (!e_mouse_init())
+     {
+       e_error_message_show(_("Enlightenment cannot configure the mouse 
acceleration settings."));
+       _e_main_shutdown(-1);
+     }
+
    TS("desklock");
    /* setup desklock */
    if (!e_desklock_init())
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to