compositor-drm: Enumerate only cards with name card*

To exclude /dev/dri/controlD* from the enumeration.
This commit is contained in:
Benjamin Franzke 2011-10-07 08:23:22 +02:00
parent 439d98697a
commit a764ee5158

View File

@ -808,6 +808,7 @@ drm_compositor_create(struct wl_display *display,
e = udev_enumerate_new(ec->udev);
udev_enumerate_add_match_subsystem(e, "drm");
udev_enumerate_add_match_sysname(e, "card[0-9]*");
udev_enumerate_scan_devices(e);
drm_device = NULL;