Activate new views

This commit is contained in:
emersion 2017-10-08 18:19:05 +02:00
parent e66e18f4de
commit 518ef46ef2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 19 additions and 12 deletions

View file

@ -73,10 +73,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
struct roots_view *view = roots_xdg_surface->view;
if (!roots_xdg_surface->initialized) {
bool centered = view_center(view);
if (centered) {
roots_xdg_surface->initialized = true;
}
roots_xdg_surface->initialized = view_initialize(view);
}
}