aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_mouse.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-04-16 21:56:30 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-04-16 21:56:30 +0000
commitaafe309fa30f56897797b728330c747b85735bba (patch)
tree2dee28418a9b7ffab081394d2629f3c083758924 /src/bin/e_mouse.c
parente: react on the good event, and don't ignore it (diff)
downloadenlightenment-aafe309fa30f56897797b728330c747b85735bba.tar.gz
E: Fix e_mouse initializing.
NB: The logic looked wrong here. (was if ecore_x_pointer_mapping_set succeeds, then return a fail of e_mouse_update). That makes no sense. We should only return a fail of mouse_update if the ecore_x_pointer_mapping_set function call Fails. SVN revision: 70247
Diffstat (limited to 'src/bin/e_mouse.c')
-rw-r--r--src/bin/e_mouse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/e_mouse.c b/src/bin/e_mouse.c
index c00d16343..a0603404c 100644
--- a/src/bin/e_mouse.c
+++ b/src/bin/e_mouse.c
@@ -7,8 +7,8 @@ e_mouse_update(void)
int n;
if (!ecore_x_pointer_control_set(e_config->mouse_accel_numerator,
- e_config->mouse_accel_denominator,
- e_config->mouse_accel_threshold))
+ e_config->mouse_accel_denominator,
+ e_config->mouse_accel_threshold))
return 0;
if (!ecore_x_pointer_mapping_get(map, 256)) return 0;
@@ -34,7 +34,8 @@ e_mouse_update(void)
map[0] = 3;
map[2] = 1;
}
- if (ecore_x_pointer_mapping_set(map, n)) return 0;
+
+ if (!ecore_x_pointer_mapping_set(map, n)) return 0;
return 1;
}