From 6a7463bb8e29c55b906dd66e2ce3625dcccbd3f4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 12 Aug 2023 08:24:08 +0200 Subject: output-layout: take wl_display in constructor The output layout creates and destroys wl_output globals. We will soon need the wl_display to do so. --- include/wlr/types/wlr_output_layout.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h index 26bb79b0..40c7fb93 100644 --- a/include/wlr/types/wlr_output_layout.h +++ b/include/wlr/types/wlr_output_layout.h @@ -26,6 +26,7 @@ struct wlr_box; */ struct wlr_output_layout { struct wl_list outputs; + struct wl_display *display; struct { struct wl_signal add; // struct wlr_output_layout_output @@ -34,6 +35,10 @@ struct wlr_output_layout { } events; void *data; + + // private state + + struct wl_listener display_destroy; }; struct wlr_output_layout_output { @@ -57,7 +62,7 @@ struct wlr_output_layout_output { struct wl_listener commit; }; -struct wlr_output_layout *wlr_output_layout_create(void); +struct wlr_output_layout *wlr_output_layout_create(struct wl_display *display); void wlr_output_layout_destroy(struct wlr_output_layout *layout); -- cgit v1.2.3