diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2014-04-02 19:53:49 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-04-02 21:26:11 -0700 |
commit | ce97a6b184034d5b284554083e1deabbf8b04b5f (patch) | |
tree | 9eb04369ce43c4741994f1892b55476d4efbd0ba /clients | |
parent | 428c24e25e3196630eaed43ce5bf7f7e00a01c74 (diff) | |
download | weston-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.c | 2 |
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; |