mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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.
This commit is contained in:
parent
63792b38e4
commit
6a7463bb8e
6 changed files with 22 additions and 9 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue