[PATCH fullscreen-shell v5 07/18] toytoolkit: Only require xdg_shell if the window is not custom

Jason Ekstrand jason at jlekstrand.net
Mon Mar 17 17:35:26 PDT 2014


Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
---
 clients/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clients/window.c b/clients/window.c
index 3136a7d..ccc333e 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4368,7 +4368,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;
-- 
1.8.5.3



More information about the wayland-devel mailing list