diff options
author | Timidger <APragmaticPlace@gmail.com> | 2018-04-29 19:47:11 -0400 |
---|---|---|
committer | Timidger <APragmaticPlace@gmail.com> | 2018-05-10 19:03:57 -0700 |
commit | 7f1230fe7881d343e83da30affcbae80e494da08 (patch) | |
tree | 29ab4a01897e5bf88ea2b9751edf6c372c782c7b /examples/rotation.c | |
parent | 167ca57b18f4777d716b3f37dd1b378695e11290 (diff) |
Remvoed unnecessary wayland socket in examples
Diffstat (limited to 'examples/rotation.c')
-rw-r--r-- | examples/rotation.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/rotation.c b/examples/rotation.c index a7bbbf32..618e91af 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -248,13 +248,6 @@ int main(int argc, char *argv[]) { 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); state.renderer = wlr_backend_get_renderer(wlr); if (!state.renderer) { |