tiled layout resizehints should be respected by default
parent
5a92420fce
commit
f25cc5678f
|
@ -27,8 +27,8 @@ static Rule rules[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
static float mfact = 0.55;
|
static float mfact = 0.55;
|
||||||
static Bool resizehints = False; /* False means respect size hints in tiled resizals */
|
static Bool resizehints = True; /* False means respect size hints in tiled resizals */
|
||||||
|
|
||||||
static Layout layouts[] = {
|
static Layout layouts[] = {
|
||||||
/* symbol arrange function */
|
/* symbol arrange function */
|
||||||
|
|
6
dwm.c
6
dwm.c
|
@ -1094,11 +1094,11 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
|
||||||
|
|
||||||
w = MAX(w, c->minw);
|
w = MAX(w, c->minw);
|
||||||
h = MAX(h, c->minh);
|
h = MAX(h, c->minh);
|
||||||
|
|
||||||
if (c->maxw)
|
if(c->maxw)
|
||||||
w = MIN(w, c->maxw);
|
w = MIN(w, c->maxw);
|
||||||
|
|
||||||
if (c->maxh)
|
if(c->maxh)
|
||||||
h = MIN(h, c->maxh);
|
h = MIN(h, c->maxh);
|
||||||
}
|
}
|
||||||
if(w <= 0 || h <= 0)
|
if(w <= 0 || h <= 0)
|
||||||
|
|
Loading…
Reference in New Issue