aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-08-12 08:24:08 +0200
committerIsaac Freund <mail@isaacfreund.com>2023-11-23 11:39:25 +0000
commit6a7463bb8e29c55b906dd66e2ce3625dcccbd3f4 (patch)
tree11e408582c20af68bc6159ac325cb1da6ab354b2 /include
parent63792b38e46ae1741a6492d3c0183cb9566e4c9f (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output_layout.h7
1 files changed, 6 insertions, 1 deletions
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);