aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_mouse.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-11 10:02:22 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 09:53:41 -0400
commit0d2b6b047c88753fce671b5023ce5959e525679d (patch)
treea69b2e1fb571e7e79301a354fe755f63862cc058 /src/bin/e_mouse.c
parentadd checks for building with Ecore_Drm2 support (diff)
downloadenlightenment-0d2b6b047c88753fce671b5023ce5959e525679d.tar.gz
port enlightenment to use drm2devs/devilhorns/ecore_drm2
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/bin/e_mouse.c')
-rw-r--r--src/bin/e_mouse.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/bin/e_mouse.c b/src/bin/e_mouse.c
index ac90d7415..40c00cb07 100644
--- a/src/bin/e_mouse.c
+++ b/src/bin/e_mouse.c
@@ -1,6 +1,10 @@
#include "e.h"
#ifdef HAVE_WL_DRM
-#include <Ecore_Drm.h>
+# ifdef HAVE_DRM2
+# include <Ecore_Drm2.h>
+# else
+# include <Ecore_Drm2.h>
+# endif
#endif
E_API int
@@ -44,7 +48,18 @@ e_mouse_update(void)
if (!ecore_x_pointer_mapping_set(map, n)) return 0;
}
#endif
+
#ifdef HAVE_WL_DRM
+# ifdef HAVE_DRM2
+ if (strstr(ecore_evas_engine_name_get(e_comp->ee), "drm"))
+ {
+ Ecore_Drm2_Device *dev;
+
+ dev = ecore_evas_data_get(e_comp->ee, "device");
+ if (dev)
+ ecore_drm2_device_pointer_left_handed_set(dev, (Eina_Bool)!e_config->mouse_hand);
+ }
+# else
if (strstr(ecore_evas_engine_name_get(e_comp->ee), "drm"))
{
const Eina_List *list, *l;
@@ -56,6 +71,7 @@ e_mouse_update(void)
ecore_drm_device_pointer_left_handed_set(dev, (Eina_Bool)!e_config->mouse_hand);
}
}
+# endif
#endif
return 1;
}