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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user