removed RESIZEHINTS and enhanced tile for fixed or aspect-ratio'ed clients cdd6c3e8
arg@suckless.org · 2007-10-24 16:26 2 file(s) · +3 −2
config.def.h +0 −1
24 24
/* layout(s) */
25 25
#define ISTILE			isarrange(tile) /* || isarrange(<custom>) */
26 26
#define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
27 -
#define RESIZEHINTS		True	/* False - respect size hints in tiled resizals */
28 27
#define SNAP			32	/* snap pixel */
29 28
Layout layouts[] = {
30 29
	/* symbol		function */
dwm.c +3 −1
1595 1595
			else
1596 1596
				nh = th - 2 * c->border;
1597 1597
		}
1598 -
		resize(c, nx, ny, nw, nh, RESIZEHINTS);
1598 +
		resize(c, nx, ny, nw, nh, True);
1599 +
		if((c->h < bh) || (c->h > nh)) /* client doesn't accept geometry */
1600 +
			resize(c, nx, ny, nw, nh, False);
1599 1601
		if(n > 1 && th != wah)
1600 1602
			ny = c->y + c->h + 2 * c->border;
1601 1603
	}