aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Chamberlain <chris@chamberlain.id.au>2021-12-13 14:53:41 +0100
committerSimon Ser <contact@emersion.fr>2021-12-13 14:53:41 +0100
commitf6d3efbf4b76a2100949fb0b88662a1324d4af54 (patch)
tree8e315da1db1731b30d06962cfb0e3300c4fae911
parente3fefda0235e548e4d23639adfe375edf380825c (diff)
backend: fix return value of attempt_drm_backend
The multi backend was returned instead of the primary DRM backend.
-rw-r--r--backend/backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/backend.c b/backend/backend.c
index 33a21851..34c1e366 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -239,7 +239,7 @@ static struct wlr_backend *attempt_drm_backend(struct wl_display *display,
return NULL;
}
- return backend;
+ return primary_drm;
}
#endif