From be854cab35bc090ab3f6fbad3a0f93013294226d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Wed, 14 Dec 2022 23:21:58 -0600 Subject: do not try to resize if size wouldn't change --- client.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.h b/client.h index 295e8ff..5a45edc 100644 --- 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); } -- cgit v1.2.3