- LOG("No shell client detected running. Will wait until one starts up...\n");
- nanosleep(&ts, NULL);
- }
-
-}
-
-static void
-destroy_shell_data(struct shell_data *sh)
-{
- struct window_output *w_output, *w_output_next;
-
- wl_list_for_each_safe(w_output, w_output_next, &sh->output_list, link)
- destroy_output(w_output);
-
- wl_display_flush(sh->wl_display);
- wl_display_disconnect(sh->wl_display);
-
- delete sh;
-}
-
-static struct shell_data *
-start_agl_shell_client(void)
-{
- int ret = 0;
- struct wl_display *wl_display;
-
- wl_display = wl_display_connect(NULL);
-
- struct shell_data *sh = new struct shell_data;
-
- sh->wl_display = wl_display;
- sh->wait_for_doas = true;
- sh->wait_for_bound = true;
-
- register_shell_ext(wl_display, sh);
+ std::this_thread::sleep_for(250ms);
+ sh->wait_for_doas = true;
+ } while (!sh->doas_ok);