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
|
|
@ -351,7 +351,7 @@ int main(int argc, char *argv[]) {
|
|||
state.allocator = wlr_allocator_autocreate(wlr, state.renderer);
|
||||
|
||||
state.cursor = wlr_cursor_create();
|
||||
state.layout = wlr_output_layout_create();
|
||||
state.layout = wlr_output_layout_create(display);
|
||||
wlr_cursor_attach_output_layout(state.cursor, state.layout);
|
||||
//wlr_cursor_map_to_region(state.cursor, state.config->cursor.mapped_box);
|
||||
wl_list_init(&state.devices);
|
||||
|
|
@ -415,5 +415,4 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
wlr_xcursor_manager_destroy(state.xcursor_manager);
|
||||
wlr_cursor_destroy(state.cursor);
|
||||
wlr_output_layout_destroy(state.layout);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue