Fix xdg_shell_view_get_size

If the view doesn't set its size explicitly (e.g. imv), it returned 0
This commit is contained in:
tiosgz 2021-09-15 16:58:02 +00:00
parent dc3b6a9303
commit ff762668a6

View file

@ -388,10 +388,11 @@ xdg_shell_view_get_size(
uint32_t *width,
uint32_t *height)
{
struct wlr_box *geom = &view->xdg_surface->geometry;
struct wlr_box geom;
wlr_xdg_surface_get_geometry(view->xdg_surface, &geom);
*width = geom->width;
*height = geom->height;
*width = geom.width;
*height = geom.height;
}
static const char *