backend/drm: add wlr_drm_connector.backend

This allows the DRM code to have direct access to the wlr_drm_backend
without having to go through an upcast via get_drm_backend_from_backend.
This commit is contained in:
Simon Ser 2020-12-09 14:31:06 +01:00
parent 87bd718de5
commit da2a216934
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 14 additions and 19 deletions

View file

@ -25,8 +25,7 @@ static void atomic_begin(struct atomic *atom) {
static bool atomic_commit(struct atomic *atom,
struct wlr_drm_connector *conn, uint32_t flags) {
struct wlr_drm_backend *drm =
get_drm_backend_from_backend(conn->output.backend);
struct wlr_drm_backend *drm = conn->backend;
if (atom->failed) {
return false;
}