client.c: Use AREA_EQUAL()
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
8283a12ec9
commit
dd1d81a3ac
|
@ -1620,10 +1620,7 @@ client_resize(client_t *c, area_t geometry, bool honor_hints)
|
||||||
if (honor_hints)
|
if (honor_hints)
|
||||||
geometry = client_apply_size_hints(c, geometry);
|
geometry = client_apply_size_hints(c, geometry);
|
||||||
|
|
||||||
if(c->geometry.x != geometry.x
|
if(!AREA_EQUAL(c->geometry, geometry))
|
||||||
|| c->geometry.y != geometry.y
|
|
||||||
|| c->geometry.width != geometry.width
|
|
||||||
|| c->geometry.height != geometry.height)
|
|
||||||
{
|
{
|
||||||
client_resize_do(c, geometry);
|
client_resize_do(c, geometry);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue