Remvoed unnecessary wayland socket in examples

This commit is contained in:
Timidger 2018-04-29 19:47:11 -04:00
parent 167ca57b18
commit 7f1230fe78
No known key found for this signature in database
GPG key ID: 42EF7ECE5FEF1D17
4 changed files with 2 additions and 29 deletions

View file

@ -273,14 +273,6 @@ int main(int argc, char *argv[]) {
exit(EXIT_FAILURE);
}
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);