wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 7b5978c34b907843bf5aac2569199f49c6220076
parent 0a87eed676db8176ca02552981afee9dbeffe15f
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Wed,  1 Mar 2006 17:11:21 +0100

fixed crashing bug


Diffstat:
cmd/wm/area.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cmd/wm/area.c b/cmd/wm/area.c @@ -37,6 +37,8 @@ destroy_area(Area *a) free(a->client); cext_array_detach((void **)p->area, a, &p->areasz); p->narea--; + if(p->sel >= p->narea) + p->sel = p->narea - 1; free(a); }