view: read xwayland_surface->{w,h} in .commit

This commit is contained in:
Johan Malm 2020-09-07 20:08:55 +01:00
parent 17f7ef53be
commit db02ef86b1

View file

@ -37,8 +37,8 @@ struct wlr_box view_get_surface_geometry(struct view *view)
wlr_xdg_surface_get_geometry(view->xdg_surface, &box); wlr_xdg_surface_get_geometry(view->xdg_surface, &box);
break; break;
case LAB_XWAYLAND_VIEW: case LAB_XWAYLAND_VIEW:
box.width = view->xwayland_surface->width; box.width = view->w;
box.height = view->xwayland_surface->height; box.height = view->h;
break; break;
} }
return box; return box;