output: take wl_display in wlr_output_create_global()

Currently wlr_output holds a wl_display, but it will go away soon.
Instead of relying on that field in wlr_output_create_global(),
make the dependency explicit by taking a wl_display as argument.
This commit is contained in:
Simon Ser 2023-08-12 08:24:59 +02:00 committed by Isaac Freund
parent 6a7463bb8e
commit 5717e27c06
6 changed files with 11 additions and 10 deletions

View file

@ -90,7 +90,7 @@ static void server_handle_new_output(struct wl_listener *listener, void *data) {
wlr_output_commit_state(wlr_output, &state);
wlr_output_state_finish(&state);
wlr_output_create_global(wlr_output);
wlr_output_create_global(wlr_output, server->display);
}
static void surface_handle_commit(struct wl_listener *listener, void *data) {