reverted Peters patch to tile, I will discuss the reasons at dwm@ 95091dca
Anselm R. Garbe · 2007-10-01 21:25 1 file(s) · +3 −6
dwm.c +3 −6
646 646
647 647
	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
648 648
		return;
649 -
	if((c = getclient(ev->window))) {
649 +
	if((c = getclient(ev->window)))
650 650
		focus(c);
651 -
		if(ISTILE && !c->isfloating)
652 -
			restack();
653 -
	}
654 651
	else if(ev->window == root) {
655 652
		selscreen = True;
656 653
		focus(NULL);
1595 1592
		else {  /* tile window */
1596 1593
			if(i == 1) {
1597 1594
				ny = way;
1598 -
				nx += mc->w + mc->border;
1595 +
				nx += mc->w + 2 * mc->border;
1599 1596
				nw = waw - nx - 2 * c->border;
1600 1597
			}
1601 1598
			if(i + 1 == n) /* remainder */
1605 1602
		}
1606 1603
		resize(c, nx, ny, nw, nh, RESIZEHINTS);
1607 1604
		if(n > 1 && th != wah)
1608 -
			ny = c->y + c->h + c->border;
1605 +
			ny = c->y + c->h + 2 * c->border;
1609 1606
	}
1610 1607
}
1611 1608