aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-26 13:07:29 -0500
committerGitHub <noreply@github.com>2018-02-26 13:07:29 -0500
commitbae17ab97c471f280dc47ebe33b0aa62220fbfb5 (patch)
tree62b13e22e9a4650bba0d755c94124e0951b5984a /backend/drm/backend.c
parent3296365ce591ae4ba115befa8134bc2526b36710 (diff)
parenta65ef8ea860e70183d0e0b44d650f0e9d2a9bf0e (diff)
Merge pull request #683 from Ongy/drm_remember_dpms
restore dpms state on drm resume
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r--backend/drm/backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index 47dff227..fec14da9 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -83,6 +83,8 @@ static void session_signal(struct wl_listener *listener, void *data) {
wl_list_for_each(conn, &drm->outputs, link){
if (conn->output.current_mode) {
wlr_output_set_mode(&conn->output, conn->output.current_mode);
+ } else {
+ wlr_drm_connector_enable(&conn->output, false);
}
if (!conn->crtc) {