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 <julien@danjou.info>
This commit is contained in:
Maxime COSTE 2008-12-25 17:22:47 +01:00 committed by Julien Danjou
parent 653fa0fadb
commit 3cc60e84dc
1 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,9 @@ client_isfixed(client_t *c)
return (c->size_hints.flags & XCB_SIZE_HINT_P_MAX_SIZE return (c->size_hints.flags & XCB_SIZE_HINT_P_MAX_SIZE
&& c->size_hints.flags & XCB_SIZE_HINT_P_MIN_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_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 /** Returns true if a client is tagged