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

@ -279,7 +279,7 @@ struct wlr_surface;
* wlr_output_commit().
*/
void wlr_output_enable(struct wlr_output *output, bool enable);
void wlr_output_create_global(struct wlr_output *output);
void wlr_output_create_global(struct wlr_output *output, struct wl_display *display);
void wlr_output_destroy_global(struct wlr_output *output);
/**
* Initialize the output's rendering subsystem with the provided allocator and