diff options
Diffstat (limited to 'examples/pointer.c')
-rw-r--r-- | examples/pointer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pointer.c b/examples/pointer.c index 5d9de33b..3600dc7b 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -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); } |