mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Merge branch 'output-damage' of github.com:emersion/wlroots into output-damage
This commit is contained in:
commit
3f96427d08
6 changed files with 166 additions and 49 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue