diff --git a/client.h b/client.h index a6fe207..eb1bb47 100644 --- a/client.h +++ b/client.h @@ -376,7 +376,9 @@ client_set_size(Client *c, uint32_t width, uint32_t height) return; } #endif - 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