aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_mouse.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-03-11 11:24:41 +0000
committerChris Michael <cp.michael@samsung.com>2014-03-18 07:43:04 +0000
commit915f8f06131132c4e2601f45fcef369cc0c39395 (patch)
tree89685cefbdc938bd709866d4444a0d30939d6c64 /src/bin/e_mouse.c
parent@bugfix: Fix configure.ac to define HAVE_WAYLAND_ONLY (diff)
downloadenlightenment-915f8f06131132c4e2601f45fcef369cc0c39395.tar.gz
@bugfix: Fix building for WAYLAND_ONLY by using the proper define
sed -i 's/WAYLAND_ONLY/HAVE_WAYLAND_ONLY/g' Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/bin/e_mouse.c')
-rw-r--r--src/bin/e_mouse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/e_mouse.c b/src/bin/e_mouse.c
index cdcb0043f..1074b7703 100644
--- a/src/bin/e_mouse.c
+++ b/src/bin/e_mouse.c
@@ -6,12 +6,14 @@ e_mouse_update(void)
unsigned char map[256] = { 0 };
int n;
+#ifndef HAVE_WAYLAND_ONLY
if (!ecore_x_pointer_control_set(e_config->mouse_accel_numerator,
e_config->mouse_accel_denominator,
e_config->mouse_accel_threshold))
return 0;
if (!ecore_x_pointer_mapping_get(map, 256)) return 0;
+#endif
for (n = 0; n < 256; n++)
{
@@ -35,7 +37,9 @@ e_mouse_update(void)
map[2] = 1;
}
+#ifndef HAVE_WAYLAND_ONLY
if (!ecore_x_pointer_mapping_set(map, n)) return 0;
+#endif
return 1;
}