Merge branch 'output-damage' of github.com:emersion/wlroots into output-damage

This commit is contained in:
emersion 2018-01-24 18:49:47 +01:00
commit 3f96427d08
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 166 additions and 49 deletions

View file

@ -27,6 +27,12 @@ void view_get_box(const struct roots_view *view, struct wlr_box *box) {
if (view->get_size) {
view->get_size(view, box);
} else {
if (view->wlr_surface == NULL) {
// View is unmapped
box->width = box->height = 0;
return;
}
box->width = view->wlr_surface->current->width;
box->height = view->wlr_surface->current->height;
}