From 3cc60e84dcd7b4985e0b43f218653a4e7dc88eed Mon Sep 17 00:00:00 2001 From: Maxime COSTE Date: Thu, 25 Dec 2008 17:22:47 +0100 Subject: [PATCH] client: fixed client_isfixed here is a little patch which fix the unresizeable window bug. This bug is due to some windows, like firefox, having XCB_SIZE_HINT_P_MAX_SIZE and XCB_SIZE_HINT_P_MIN_SIZE on and all related values to 0, which makes client_isfixed believe that the windows are of fixed size. Hope this is the right way to fix it. Anyway now you know where this bug comes from. Signed-off-by: Julien Danjou --- client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.h b/client.h index 69740eeab..561e9c59f 100644 --- a/client.h +++ b/client.h @@ -126,7 +126,9 @@ client_isfixed(client_t *c) return (c->size_hints.flags & XCB_SIZE_HINT_P_MAX_SIZE && c->size_hints.flags & XCB_SIZE_HINT_P_MIN_SIZE && c->size_hints.max_width == c->size_hints.min_width - && c->size_hints.max_height == c->size_hints.min_height); + && c->size_hints.max_height == c->size_hints.min_height + && c->size_hints.max_width + && c->size_hints.max_height); } /** Returns true if a client is tagged