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.
This commit is contained in:
parent
b20b00923a
commit
980b018825
@ -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…
x
Reference in New Issue
Block a user