applied Martin Hurton's view() simplification, not checking arg 2dc7f42f
Anselm R Garbe · 2008-08-18 09:49 1 file(s) · +2 −2
dwm.c +2 −2
1640 1640
1641 1641
void
1642 1642
view(const Arg *arg) {
1643 -
	if(arg && (arg->ui & TAGMASK) == tagset[seltags])
1643 +
	if((arg->ui & TAGMASK) == tagset[seltags])
1644 1644
		return;
1645 1645
	seltags ^= 1; /* toggle sel tagset */
1646 -
	if(arg && (arg->ui & TAGMASK))
1646 +
	if(arg->ui & TAGMASK)
1647 1647
		tagset[seltags] = arg->ui & TAGMASK;
1648 1648
	clearurgent();
1649 1649
	arrange();