From 980b0188250a03ca372b7486075dd43e92e603a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 15 Aug 2013 11:56:41 -0700 Subject: [PATCH] window: Don't check for subcompositor in window_add_subsurface() Client should check for subcompositor support up front. Now window_add_surface() can never return NULL. --- clients/window.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/clients/window.c b/clients/window.c index 7223e37..d701889 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4697,9 +4697,6 @@ window_add_subsurface(struct window *window, void *data, struct wl_surface *parent; struct wl_subcompositor *subcompo = window->display->subcompositor; - if (!subcompo) - return NULL; - surface = surface_create(window); widget = widget_create(window, surface, data); wl_list_init(&widget->link); -- 2.7.4