client.c: Use AREA_EQUAL()

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-09-15 18:36:34 +02:00
parent 8283a12ec9
commit dd1d81a3ac
1 changed files with 1 additions and 4 deletions

View File

@ -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);