rename wlr_cursor_init to wlr_cursor_create

This commit is contained in:
Tony Crisci 2017-08-29 10:42:23 -04:00
parent 1fb8bc9340
commit a51b76083e
3 changed files with 3 additions and 3 deletions

View file

@ -340,7 +340,7 @@ int main(int argc, char *argv[]) {
};
state.config = parse_args(argc, argv);
state.cursor = wlr_cursor_init();
state.cursor = wlr_cursor_create();
wlr_cursor_map_to_region(state.cursor, state.config->cursor.mapped_geo);
wl_list_init(&state.devices);

View file

@ -31,7 +31,7 @@ struct wlr_cursor {
} events;
};
struct wlr_cursor *wlr_cursor_init();
struct wlr_cursor *wlr_cursor_create();
void wlr_cursor_destroy(struct wlr_cursor *cur);

View file

@ -41,7 +41,7 @@ struct wlr_cursor_state {
struct wlr_geometry *mapped_geometry;
};
struct wlr_cursor *wlr_cursor_init() {
struct wlr_cursor *wlr_cursor_create() {
struct wlr_cursor *cur = calloc(1, sizeof(struct wlr_cursor));
if (!cur) {
wlr_log(L_ERROR, "Failed to allocate wlr_cursor");