toytoolkit: Only require xdg_shell if the window is not custom
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 3 Apr 2014 00:53:49 +0000 (19:53 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 3 Apr 2014 04:26:11 +0000 (21:26 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
clients/window.c

index 5ba7322..6f89ae6 100644 (file)
@@ -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;