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.
dev
Kristian Høgsberg 12 years ago
parent b20b00923a
commit 980b018825
  1. 3
      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);

Loading…
Cancel
Save