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:
parent
0d1972eacf
commit
8e58279c26
1 changed files with 4 additions and 3 deletions
|
@ -388,10 +388,11 @@ xdg_shell_view_get_size(
|
||||||
uint32_t *width,
|
uint32_t *width,
|
||||||
uint32_t *height)
|
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;
|
*width = geom.width;
|
||||||
*height = geom->height;
|
*height = geom.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
|
|
Loading…
Reference in a new issue