Hi people,

the attached patch fixes a little problem I've been having lately with
the phone application I'm using on my FreeRunner. The windows of that
application have kind of gross size hints (they want to have a fixed
size), which didn't really play nice together with having them in a
maximized layout. Setting size_hints_honor to false didn't help, as
client_isfixed() didn't take that into account. The attached patch fixes
that.

-- 
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+

    Gregor Best
From b33c0e06ba43111c97fb309b5b5d45360b6a655e Mon Sep 17 00:00:00 2001
From: Gregor Best <g...@ring0.de>
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 <g...@ring0.de>
---
 objects/client.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/objects/client.h b/objects/client.h
index d8abe30..71d36cd 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 
-- 
1.7.0

Attachment: pgpYUW6TaUz8V.pgp
Description: PGP signature

Reply via email to