minor fix 16e1ef5d
Anselm R Garbe · 2009-07-02 14:42 1 file(s) · +3 −3
dwm.c +3 −3
1195 1195
	for(m = mons; m; m = m->next)
1196 1196
		if(INRECT(x, y, m->wx, m->wy, m->ww, m->wh))
1197 1197
			return m;
1198 -
	return mons;
1198 +
	return selmon;
1199 1199
}
1200 1200
1201 1201
void
1758 1758
1759 1759
	/* select focused monitor */
1760 1760
	cleanupmons();
1761 -
	mons = newmons;
1761 +
	selmon = mons = newmons;
1762 1762
	selmon = wintomon(root);
1763 1763
}
1764 1764
1891 1891
			return m;
1892 1892
	if((c = wintoclient(w)))
1893 1893
		return c->mon;
1894 -
	return mons;
1894 +
	return selmon;
1895 1895
}
1896 1896
1897 1897
/* There's no way to check accesses to destroyed windows, thus those cases are