view_get_geometry: only out width and height

This is the only thing we need, as we don't use a view's x and y
coordinates for placing windows.
This commit is contained in:
Jente Hidskes 2018-12-31 20:44:20 +01:00
parent 786e28bdac
commit 48f8f69556
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
3 changed files with 11 additions and 7 deletions

View file

@ -28,9 +28,13 @@ maximize(struct cg_view *view, int output_width, int output_height)
}
static void
get_geometry(struct cg_view *view, struct wlr_box *geom)
get_geometry(struct cg_view *view, int *width_out, int *height_out)
{
wlr_xdg_surface_get_geometry(view->xdg_surface, geom);
struct wlr_box geom;
wlr_xdg_surface_get_geometry(view->xdg_surface, &geom);
*width_out = geom.width;
*height_out = geom.height;
}
static bool