diff options
Diffstat (limited to 'examples/simple.c')
-rw-r--r-- | examples/simple.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/simple.c b/examples/simple.c index 7bf95601..0c58f933 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -165,13 +165,7 @@ int main() { wl_signal_add(&wlr->events.new_input, &state.new_input); state.new_input.notify = new_input_notify; clock_gettime(CLOCK_MONOTONIC, &state.last_frame); - const char *socket = wl_display_add_socket_auto(display); - if (!socket) { - wlr_log_errno(L_ERROR, "Unable to open wayland socket"); - wlr_backend_destroy(wlr); - exit(1); - } - setenv("_WAYLAND_DISPLAY", socket, true); + if (!wlr_backend_start(wlr)) { wlr_log(L_ERROR, "Failed to start backend"); wlr_backend_destroy(wlr); |