From dd1d81a3acaf0da065ffab124b4a6f82da373de3 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 15 Sep 2016 18:36:34 +0200 Subject: [PATCH] client.c: Use AREA_EQUAL() Signed-off-by: Uli Schlachter --- objects/client.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/objects/client.c b/objects/client.c index 845e6e1fe..054aeb7fa 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1620,10 +1620,7 @@ client_resize(client_t *c, area_t geometry, bool honor_hints) 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) + if(!AREA_EQUAL(c->geometry, geometry)) { client_resize_do(c, geometry);