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

@ -333,7 +333,7 @@ void handle_xdg_shell_surface(struct wl_listener *listener, void *data) {
roots_surface->new_popup.notify = handle_new_popup;
wl_signal_add(&surface->events.new_popup, &roots_surface->new_popup);
struct roots_view *view = calloc(1, sizeof(struct roots_view));
struct roots_view *view = view_create();
if (!view) {
free(roots_surface);
return;