aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/e_mouse.c')
-rw-r--r--src/bin/e_mouse.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/bin/e_mouse.c b/src/bin/e_mouse.c
index 5aaa561e5..ac90d7415 100644
--- a/src/bin/e_mouse.c
+++ b/src/bin/e_mouse.c
@@ -1,4 +1,7 @@
#include "e.h"
+#ifdef HAVE_WL_DRM
+#include <Ecore_Drm.h>
+#endif
E_API int
e_mouse_update(void)
@@ -41,7 +44,18 @@ e_mouse_update(void)
if (!ecore_x_pointer_mapping_set(map, n)) return 0;
}
#endif
+#ifdef HAVE_WL_DRM
+ if (strstr(ecore_evas_engine_name_get(e_comp->ee), "drm"))
+ {
+ const Eina_List *list, *l;
+ Ecore_Drm_Device *dev;
+ list = ecore_drm_devices_get();
+ EINA_LIST_FOREACH(list, l, dev)
+ {
+ ecore_drm_device_pointer_left_handed_set(dev, (Eina_Bool)!e_config->mouse_hand);
+ }
+ }
+#endif
return 1;
}
-