diff options
author | Versus Void <versusvoid@gmail.com> | 2017-10-22 21:44:24 +0000 |
---|---|---|
committer | Versus Void <versusvoid@gmail.com> | 2017-10-22 21:44:24 +0000 |
commit | 3ed3271b9817500b8fb2234381023204c5768ac6 (patch) | |
tree | e0ea7c48ba990073c22537a36fb9315f595fa2e5 /backend | |
parent | 549777ca19b2040ff0824ac7764bbe1cb834e953 (diff) |
Rescan connectors on DRM resume
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/backend.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 9fbfe58c..40b559e2 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -62,10 +62,13 @@ static void session_signal(struct wl_listener *listener, void *data) { if (session->active) { wlr_log(L_INFO, "DRM fd resumed"); + wlr_drm_scan_connectors(drm); struct wlr_drm_connector *conn; wl_list_for_each(conn, &drm->outputs, link){ - wlr_drm_connector_start_renderer(conn); + if (conn->output.current_mode) { + wlr_output_set_mode(&conn->output, conn->output.current_mode); + } if (!conn->crtc) { continue; |