From ce97a6b184034d5b284554083e1deabbf8b04b5f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 2 Apr 2014 19:53:49 -0500 Subject: [PATCH] toytoolkit: Only require xdg_shell if the window is not custom Signed-off-by: Jason Ekstrand --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 5ba73227..6f89ae6a 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4359,7 +4359,7 @@ window_create_internal(struct display *display, int custom) surface = surface_create(window); window->main_surface = surface; - fail_on_null(display->xdg_shell); + assert(custom || display->xdg_shell); window->custom = custom; window->preferred_format = WINDOW_PREFERRED_FORMAT_NONE;