summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-14 23:21:58 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-24 16:44:09 -0600
commitbe854cab35bc090ab3f6fbad3a0f93013294226d (patch)
treedee72b64df89aa0809de26fa7bc1b9c59bba1b10
parent6ca011430a18980f12f7314cdeeff36051268a67 (diff)
do not try to resize if size wouldn't change
-rw-r--r--client.h3
1 files changed, 3 insertions, 0 deletions
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);
}