aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-07-02 11:24:43 +0200
committerDrew DeVault <sir@cmpwn.com>2020-07-02 09:39:41 -0600
commitf82a27f55a3be7f2d6bdd53a306f49f339ef6b8f (patch)
tree670c7bab236a4d8da8d34838fd9556760a46680a
parenta54ed8588177a679a131c621c0d300c6a9d910c5 (diff)
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
-rw-r--r--backend/drm/legacy.c2
1 files changed, 1 insertions, 1 deletions
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;