terminal: modeset: forward DEVICE_CHANGE events into grdev

Properly forward DEVICE_CHANGE events into grdev so we can react to
changing display setups.
This commit is contained in:
David Herrmann
2014-09-20 11:46:49 +02:00
parent 39cf40e846
commit 46c9a12780
+7
View File
@@ -363,6 +363,13 @@ static int modeset_sysview_fn(sysview_context *c, void *userdata, sysview_event
return -errno;
}
break;
case SYSVIEW_EVENT_DEVICE_CHANGE:
d = ev->device_change.device;
type = sysview_device_get_type(d);
if (type == SYSVIEW_DEVICE_DRM)
grdev_session_hotplug_drm(m->grdev_session, ev->device_change.ud);
break;
}