aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-16 17:36:57 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-16 17:36:57 -0400
commite7fa4f12e16cf2a38b5bea064e89a53d88857274 (patch)
tree3e1a93291ca9f462151b1e5b10421f856e5f7439
parentbeb84940cf26eebcdaf21cb9ec81df485701e65f (diff)
Fix DRM problem introduced in 901c14c
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 9b4cee2f..e65ca696 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -782,7 +782,7 @@ void wlr_drm_scan_connectors(struct wlr_drm_backend *backend) {
mode->wlr_mode.width, mode->wlr_mode.height,
mode->wlr_mode.refresh);
- if (list_add(backend->outputs, output) == -1) {
+ if (list_add(output->output.modes, mode) == -1) {
wlr_log_errno(L_ERROR, "Allocation failed");
free(mode);
continue;