rootston: add view_create

so we can do basic view setup. Will be used to initialize alpha.
This commit is contained in:
Guido Günther 2018-02-23 11:50:09 +01:00
parent 69409ea3cb
commit e6ca78b0e4
6 changed files with 11 additions and 4 deletions

View file

@ -317,7 +317,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
wl_signal_add(&surface->surface->events.commit,
&roots_surface->surface_commit);
struct roots_view *view = calloc(1, sizeof(struct roots_view));
struct roots_view *view = view_create();
if (view == NULL) {
free(roots_surface);
return;