mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
wlr_backend_init -> wlr_backend_start
Also renames create to init. We'll use create for anything that allocates and init for anything that takes a pointer and initializes it.
This commit is contained in:
parent
43fb40e949
commit
4386816889
8 changed files with 22 additions and 22 deletions
|
|
@ -512,8 +512,8 @@ void compositor_init(struct compositor_state *state) {
|
|||
|
||||
wlr_log(L_INFO, "Running compositor on wayland display '%s'", socket);
|
||||
setenv("_WAYLAND_DISPLAY", socket, true);
|
||||
if (!wlr_backend_init(state->backend)) {
|
||||
wlr_log(L_ERROR, "Failed to initialize backend");
|
||||
if (!wlr_backend_start(state->backend)) {
|
||||
wlr_log(L_ERROR, "Failed to start backend");
|
||||
wlr_backend_destroy(wlr);
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue