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

@ -227,7 +227,7 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
roots_surface->surface_commit.notify = handle_surface_commit;
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) {
free(roots_surface);
return;