commit be854cab35bc090ab3f6fbad3a0f93013294226d parent 6ca011430a18980f12f7314cdeeff36051268a67 Author: Leonardo Hernández Hernández <leohdz172@protonmail.com> Date: Wed, 14 Dec 2022 23:21:58 -0600 do not try to resize if size wouldn't change Diffstat:
| M | client.h | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/client.h b/client.h @@ -345,6 +345,9 @@ client_set_size(Client *c, uint32_t width, uint32_t height) return 0; } #endif + if (width == c->surface.xdg->toplevel->current.width + && height ==c->surface.xdg->toplevel->current.height) + return 0; return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, width, height); }