~kris/suckless

tabbed

0214014fbedb905b5d09e2916e831d47f534d992 — Gregor Best 12 years ago e68297e
Fix crash on client termination

Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
1 files changed, 1 insertions(+), 0 deletions(-)

M tabbed.c
M tabbed.c => tabbed.c +1 -0
@@ 1094,6 1094,7 @@ unmanage(int c) {
		} else if(lastsel > c) {
			lastsel--;
		}
		lastsel = MIN(lastsel, nclients - 1);

		if(c == sel) {
			/* Note that focus() will never set lastsel == sel,