summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-08-27 15:17:21 +1000
committerDave Airlie <airlied@redhat.com>2012-09-04 16:16:02 +1000
commit18deac48db0d2387242461025904eb28a0f71fac (patch)
tree89a3ee5915eafc341463987b41d91d1df2624878
parentec740cffeba59216f4293fba829097654cde3b11 (diff)
config/udev: respect seat for hotplugged video devices.
This respects the seat tag for hotplugged video devices at X start. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--config/udev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/udev.c b/config/udev.c
index 5a8f4816e..c2d00bbda 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -454,6 +454,10 @@ config_udev_odev_probe(config_odev_probe_proc_ptr probe_callback)
udev_enumerate_add_match_subsystem(enumerate, "drm");
udev_enumerate_add_match_sysname(enumerate, "card[0-9]*");
+#ifdef HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG
+ if (ServerIsNotSeat0())
+ udev_enumerate_add_match_tag(enumerate, SeatId);
+#endif
udev_enumerate_scan_devices(enumerate);
devices = udev_enumerate_get_list_entry(enumerate);
udev_list_entry_foreach(device, devices) {