From 56d9e3b9dee53fca367ed7de95e461129afc867c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 1 Aug 2015 16:44:20 +0200 Subject: [PATCH] client_resize: apply size hints before calling client_resize_do This will skip calling `client_resize_do` in case of honored size hints. This could be also done in `client_resize_do`, but it appears to be meant to force the resize. Closes https://github.com/awesomeWM/awesome/pull/383. --- objects/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/objects/client.c b/objects/client.c index be12b0f6..bf302a68 100644 --- a/objects/client.c +++ b/objects/client.c @@ -913,12 +913,15 @@ client_resize(client_t *c, area_t geometry, bool honor_hints) if(geometry.width == 0 || geometry.height == 0) return false; + if (honor_hints) + geometry = client_apply_size_hints(c, geometry); + if(c->geometry.x != geometry.x || c->geometry.y != geometry.y || c->geometry.width != geometry.width || c->geometry.height != geometry.height) { - client_resize_do(c, geometry, false, honor_hints); + client_resize_do(c, geometry, false, false); return true; }