From f82a27f55a3be7f2d6bdd53a306f49f339ef6b8f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 2 Jul 2020 11:24:43 +0200 Subject: backend/drm: fix DPMS on legacy interface This mirrors what the atomic code does in create_mode_blob. Closes: https://github.com/swaywm/wlroots/issues/2312 --- backend/drm/legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/drm') diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c index 98397c2d..3380461c 100644 --- a/backend/drm/legacy.c +++ b/backend/drm/legacy.c @@ -32,7 +32,7 @@ static bool legacy_crtc_commit(struct wlr_drm_backend *drm, uint32_t *conns = NULL; size_t conns_len = 0; drmModeModeInfo *mode = NULL; - if (crtc->pending.mode != NULL) { + if (crtc->pending.active) { conns = &conn->id; conns_len = 1; mode = &crtc->pending.mode->drm_mode; -- cgit v1.2.3