simple-egl: Bail out if xdg-shell was not found

We only support xdg-shell in simple-egl, so make it obvious.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2021-08-13 16:49:31 +03:00 committed by Pekka Paalanen
parent a7392c855d
commit 4a0f94cefa

View File

@ -848,6 +848,11 @@ main(int argc, char **argv)
wl_display_roundtrip(display.display);
if (!display.wm_base) {
fprintf(stderr, "xdg-shell support required. simple-egl exiting\n");
goto out_no_xdg_shell;
}
init_egl(&display, &window);
create_surface(&window);
init_gl(&window);
@ -879,6 +884,7 @@ main(int argc, char **argv)
fini_egl(&display);
wl_surface_destroy(display.cursor_surface);
out_no_xdg_shell:
if (display.cursor_theme)
wl_cursor_theme_destroy(display.cursor_theme);