summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/modeset.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-09-20 09:46:13 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-20 11:46:49 +0200
commit46c9a12780ea24ef311682897077423f1825c519 (patch)
tree5cd969fd43df98172f54f6e9fa4cbaa9a7e9146d /src/libsystemd-terminal/modeset.c
parent39cf40e846754fe37f5c8a948f37227ce1ef8472 (diff)
terminal: modeset: forward DEVICE_CHANGE events into grdev
Properly forward DEVICE_CHANGE events into grdev so we can react to changing display setups.
Diffstat (limited to 'src/libsystemd-terminal/modeset.c')
-rw-r--r--src/libsystemd-terminal/modeset.c7
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;