diff options
-rw-r--r-- | src/libsystemd-terminal/modeset.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/modeset.c b/src/libsystemd-terminal/modeset.c index c1119c9e0f..57bf299df5 100644 --- a/src/libsystemd-terminal/modeset.c +++ b/src/libsystemd-terminal/modeset.c @@ -364,6 +364,13 @@ static int modeset_sysview_fn(sysview_context *c, void *userdata, sysview_event } 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; } return 0; |