wlr_texture_get_size() is removed in wlroots@
6369f709 so we have to
access width and height directly.
struct wlr_box *box, struct wlr_texture *texture)
{
/* centre-align icon if smaller than designated box */
- struct wlr_box button;
- wlr_texture_get_size(texture, &button.width, &button.height);
+ struct wlr_box button = {
+ .width = texture->width,
+ .height = texture->height,
+ };
if (box->width > button.width) {
button.x = box->x + (box->width - button.width) / 2;
} else {