summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 80ff33bc..d57902e6 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -705,6 +705,16 @@ sna_handle_uevents(int fd, void *closure)
return;
}
+ str = udev_device_get_property_value(dev, "DISCOVER");
+ if (str && atoi(str) == 1) {
+ DBG(("%s: discover event (vtSema?=%d)\n",
+ __FUNCTION__, sna->scrn->vtSema));
+ if (sna->scrn->vtSema)
+ sna_mode_discover(sna);
+ else
+ sna->flags |= SNA_REDISCOVER;
+ }
+
str = udev_device_get_property_value(dev, "HOTPLUG");
if (str && atoi(str) == 1) {
DBG(("%s: hotplug event (vtSema?=%d)\n",
@@ -716,16 +726,6 @@ sna_handle_uevents(int fd, void *closure)
sna->flags |= SNA_REPROBE;
}
- str = udev_device_get_property_value(dev, "DISCOVER");
- if (str && atoi(str) == 1) {
- DBG(("%s: discover event (vtSema?=%d)\n",
- __FUNCTION__, sna->scrn->vtSema));
- if (sna->scrn->vtSema)
- sna_mode_discover(sna);
- else
- sna->flags |= SNA_REDISCOVER;
- }
-
udev_device_unref(dev);
}