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:
parent
653fa0fadb
commit
3cc60e84dc
4
client.h
4
client.h
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue