Skip to content
Snippets Groups Projects
Commit 4a0f94ce authored by Marius Vlad's avatar Marius Vlad Committed by Pekka Paalanen
Browse files

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: default avatarMarius Vlad <marius.vlad@collabora.com>
parent a7392c85
No related branches found
No related tags found
Loading
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment