devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fe77fb6c34a5acc041ad45e1cd56168ce92c51dd

commit fe77fb6c34a5acc041ad45e1cd56168ce92c51dd
Author: Chris Michael <[email protected]>
Date:   Mon Mar 23 12:14:45 2015 -0400

    eeze: Fix issue of eeze_udev_watch_add not getting events for drm
    
    Summary: This fixes eeze_udev_watch_add for DRM events, Previously, we
    were not getting a watch callback fired due to using the wrong
    subsystem device type in
    udev_monitor_filter_add_match_subsystem_devtype.
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/eeze/eeze_udev_watch.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/lib/eeze/eeze_udev_watch.c b/src/lib/eeze/eeze_udev_watch.c
index ec26b91..5a477b9 100644
--- a/src/lib/eeze/eeze_udev_watch.c
+++ b/src/lib/eeze/eeze_udev_watch.c
@@ -239,6 +239,10 @@ _get_syspath_from_watch(void             *data,
         if ((!(test = udev_device_get_subsystem(device)))
             || (strcmp(test, "drm")))
           goto error;
+
+        test = udev_device_get_property_value(device, "HOTPLUG");
+        if ((!test) || (strcmp(test, "1"))) goto error;
+
         break;
 
       case EEZE_UDEV_TYPE_BACKLIGHT:
@@ -334,8 +338,7 @@ eeze_udev_watch_add(Eeze_Udev_Type     type,
         break;
 
       case EEZE_UDEV_TYPE_DRM:
-        udev_monitor_filter_add_match_subsystem_devtype(mon, "drm_minor",
-                                                        NULL);
+        udev_monitor_filter_add_match_subsystem_devtype(mon, "drm", NULL);
         break;
 
       default:

-- 


Reply via email to