discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5b5e3fa5db13533e995dd29bcbe18781debf5bc4

commit 5b5e3fa5db13533e995dd29bcbe18781debf5bc4
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Feb 24 14:15:42 2017 -0500

    fix wl_drm detection in e_mouse.c
---
 src/bin/e_mouse.c | 24 +++---------------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/src/bin/e_mouse.c b/src/bin/e_mouse.c
index 40c00cb..dcd625a 100644
--- a/src/bin/e_mouse.c
+++ b/src/bin/e_mouse.c
@@ -1,10 +1,6 @@
 #include "e.h"
-#ifdef HAVE_WL_DRM
-# ifdef HAVE_DRM2
-#  include <Ecore_Drm2.h>
-# else
-#  include <Ecore_Drm2.h>
-# endif
+#ifdef USE_MODULE_WL_DRM
+# include <Ecore_Drm2.h>
 #endif
 
 E_API int
@@ -49,8 +45,7 @@ e_mouse_update(void)
      }
 #endif
 
-#ifdef HAVE_WL_DRM
-# ifdef HAVE_DRM2
+#ifdef USE_MODULE_WL_DRM
    if (strstr(ecore_evas_engine_name_get(e_comp->ee), "drm"))
      {
         Ecore_Drm2_Device *dev;
@@ -59,19 +54,6 @@ e_mouse_update(void)
         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;
-        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
 #endif
    return 1;
 }

-- 


Reply via email to