From 5987e48385b6e4a6a6ddb1d3ccd9219f0dcb6c0e Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Wed, 3 Mar 2010 00:07:10 +0100 Subject: [PATCH] client: _really_ honor size hints If c->honor_size_hints is set to false and the client indicates through its hints that it wants to be fixed size (by setting min and max width equal), size hints are not ignored due to client_isfixed not taking honor_size_hints being false into account. This commit fixes that. Signed-off-by: Gregor Best Signed-off-by: Julien Danjou --- objects/client.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objects/client.h b/objects/client.h index d8abe30e..71d36cd4 100644 --- a/objects/client.h +++ b/objects/client.h @@ -250,7 +250,8 @@ client_isfixed(client_t *c) && c->size_hints.max_width == c->size_hints.min_width && c->size_hints.max_height == c->size_hints.min_height && c->size_hints.max_width - && c->size_hints.max_height); + && c->size_hints.max_height + && c->size_hints_honor); } /** Returns true if a client is tagged with one of the tags of the