forked from enlightenment/efl
ecore_drm2: fix seat matching when checking for a device with a null seat
Summary: Check to make sure that the seat from the matching device is still null. Test Plan: Make sure that devices are not being rejected while on seat1. This depends on another patch Reviewers: ManMower, devilhorns Reviewed By: devilhorns Subscribers: ManMower, devilhorns, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5711
This commit is contained in:
parent
4e2406ed3b
commit
d1a7dd5e42
|
@ -100,6 +100,8 @@ _drm2_device_find(Elput_Manager *em, const char *seat)
|
||||||
Eina_Bool modeset;
|
Eina_Bool modeset;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(seat, NULL);
|
||||||
|
|
||||||
devs = eeze_udev_find_by_subsystem_sysname("drm", "card[0-9]*");
|
devs = eeze_udev_find_by_subsystem_sysname("drm", "card[0-9]*");
|
||||||
if (!devs) return NULL;
|
if (!devs) return NULL;
|
||||||
|
|
||||||
|
@ -113,9 +115,7 @@ _drm2_device_find(Elput_Manager *em, const char *seat)
|
||||||
dseat = eeze_udev_syspath_get_property(dev, "ID_SEAT");
|
dseat = eeze_udev_syspath_get_property(dev, "ID_SEAT");
|
||||||
if (!dseat) dseat = eina_stringshare_add("seat0");
|
if (!dseat) dseat = eina_stringshare_add("seat0");
|
||||||
|
|
||||||
if ((seat) && (strcmp(seat, dseat)))
|
if (strcmp(seat, dseat))
|
||||||
goto cont;
|
|
||||||
else if (strcmp(dseat, "seat0"))
|
|
||||||
goto cont;
|
goto cont;
|
||||||
|
|
||||||
fd = elput_manager_open(em, dpath, -1);
|
fd = elput_manager_open(em, dpath, -1);
|
||||||
|
|
Loading…
Reference in New Issue