Add pointer to backend inside wlr_output

This commit is contained in:
Scott Anderson 2017-10-21 17:37:25 +13:00
parent 4ea84c5765
commit 822a9f65a4
6 changed files with 13 additions and 8 deletions

View file

@ -241,7 +241,7 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *_backend) {
wlr_log(L_ERROR, "Failed to allocate wlr_wl_backend_output");
return NULL;
}
wlr_output_init(&output->wlr_output, &output_impl);
wlr_output_init(&output->wlr_output, &backend->backend, &output_impl);
struct wlr_output *wlr_output = &output->wlr_output;
wlr_output->width = 640;