~ruther/dwl

fec0699985650cdf8da5571376797c0bc6613a5e — Guido Cella 2 months ago e7f185e
make client_set_size() return void

The return value is unused since the previous commit.
1 files changed, 5 insertions(+), 6 deletions(-)

M client.h
M client.h => client.h +5 -6
@@ 344,20 344,19 @@ client_set_scale(struct wlr_surface *s, float scale)
	wlr_surface_set_preferred_buffer_scale(s, (int32_t)ceilf(scale));
}

static inline uint32_t
static inline void
client_set_size(Client *c, uint32_t width, uint32_t height)
{
#ifdef XWAYLAND
	if (client_is_x11(c)) {
		wlr_xwayland_surface_configure(c->surface.xwayland,
				c->geom.x + c->bw, c->geom.y + c->bw, width, height);
		return 0;
		return;
	}
#endif
	if ((int32_t)width == c->surface.xdg->toplevel->current.width
			&& (int32_t)height == c->surface.xdg->toplevel->current.height)
		return 0;
	return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, (int32_t)width, (int32_t)height);
	if ((int32_t)width != c->surface.xdg->toplevel->current.width
			|| (int32_t)height != c->surface.xdg->toplevel->current.height)
		wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, (int32_t)width, (int32_t)height);
}

static inline void