aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_mouse.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-03-18 16:14:04 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-03-18 16:14:04 -0400
commitc04d754ac558778f207c3683401fc20f968b7ce8 (patch)
tree3e268fd3c655cfbdf287489ecba0a9410fda202b /src/bin/e_mouse.c
parentsystray stop crashing in wayland!!!! (diff)
downloadenlightenment-c04d754ac558778f207c3683401fc20f968b7ce8.tar.gz
enabling drm output module should NOT require X-less build.
these defines all need to be changed from HAVE_WAYLAND_ONLY to something like WITH_X or we're going to have lots of problems with xwayland later on
Diffstat (limited to 'src/bin/e_mouse.c')
-rw-r--r--src/bin/e_mouse.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/bin/e_mouse.c b/src/bin/e_mouse.c
index 1074b7703..2990c243a 100644
--- a/src/bin/e_mouse.c
+++ b/src/bin/e_mouse.c
@@ -7,12 +7,15 @@ e_mouse_update(void)
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 (e_comp_get(NULL)->comp_type == E_PIXMAP_TYPE_X)
+ {
+ 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;
+ if (!ecore_x_pointer_mapping_get(map, 256)) return 0;
+ }
#endif
for (n = 0; n < 256; n++)
@@ -38,7 +41,8 @@ e_mouse_update(void)
}
#ifndef HAVE_WAYLAND_ONLY
- if (!ecore_x_pointer_mapping_set(map, n)) return 0;
+ if (e_comp_get(NULL)->comp_type == E_PIXMAP_TYPE_X)
+ if (!ecore_x_pointer_mapping_set(map, n)) return 0;
#endif
return 1;