JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
apply resize hints in floating layout
authorConnor Lane Smith <cls@lubutu.com>
Tue, 25 Oct 2011 19:08:08 +0000 (20:08 +0100)
committerConnor Lane Smith <cls@lubutu.com>
Tue, 25 Oct 2011 19:08:08 +0000 (20:08 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index d108e12..d274b50 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -349,7 +349,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) {
                *h = bh;
        if(*w < bh)
                *w = bh;
                *h = bh;
        if(*w < bh)
                *w = bh;
-       if(resizehints || c->isfloating) {
+       if(resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) {
                /* see last two sentences in ICCCM 4.1.2.3 */
                baseismin = c->basew == c->minw && c->baseh == c->minh;
                if(!baseismin) { /* temporarily remove base dimensions */
                /* see last two sentences in ICCCM 4.1.2.3 */
                baseismin = c->basew == c->minw && c->baseh == c->minh;
                if(!baseismin) { /* temporarily remove base dimensions */