~kris/suckless

tabbed

4b2dfb110f4c2698ab27ea6ad2f6f2e914631b9f — Christoph Lohmann 12 years ago 0120447
Applying the client sel handling of quinq.

When after unmanaging the the last selected client was unmanaged, select the
last client.
1 files changed, 2 insertions(+), 2 deletions(-)

M tabbed.c
M tabbed.c => tabbed.c +2 -2
@@ 1089,8 1089,8 @@ unmanage(int c) {
			spawn(NULL);
		}
	} else {
		if(c == lastsel) {
			lastsel = -1;
		if(c && lastsel >= nclients) {
			lastsel = nclients - 1;
		} else if(lastsel > c) {
			lastsel--;
		}