mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -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
|
|
@ -273,7 +273,7 @@ int main(int argc, char *argv[]) {
|
|||
.display = display,
|
||||
};
|
||||
|
||||
state.layout = wlr_output_layout_create();
|
||||
state.layout = wlr_output_layout_create(display);
|
||||
clock_gettime(CLOCK_MONOTONIC, &state.ts_last);
|
||||
|
||||
struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
|
||||
|
|
@ -303,5 +303,4 @@ int main(int argc, char *argv[]) {
|
|||
wlr_texture_destroy(state.cat_texture);
|
||||
|
||||
wl_display_destroy(state.display);
|
||||
wlr_output_layout_destroy(state.layout);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue