diff options
author | Simon Ser <contact@emersion.fr> | 2023-08-12 08:24:59 +0200 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-11-23 11:39:25 +0000 |
commit | 5717e27c06a89a64b3a168ed22682bf657b17ebf (patch) | |
tree | 43ce180fed0dd8d7bc1f8b0fc2603898bd83d719 /include/wlr | |
parent | 6a7463bb8e29c55b906dd66e2ce3625dcccbd3f4 (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 47c7672e..e81ba02e 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -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 |