summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2014-04-02 19:53:49 -0500
committerKristian Høgsberg <krh@bitplanet.net>2014-04-02 21:26:11 -0700
commitce97a6b184034d5b284554083e1deabbf8b04b5f (patch)
tree9eb04369ce43c4741994f1892b55476d4efbd0ba /clients
parent428c24e25e3196630eaed43ce5bf7f7e00a01c74 (diff)
downloadweston-ce97a6b184034d5b284554083e1deabbf8b04b5f.tar.gz
toytoolkit: Only require xdg_shell if the window is not custom
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c2
1 files changed, 1 insertions, 1 deletions
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;