[hackers] [tabbed] Fix crash on client termination || Gregor Best
commit 0214014fbedb905b5d09e2916e831d47f534d992
Author: Gregor Best <gbe_AT_ring0.de>
Date: Tue Jan 21 19:18:00 2014 +0100
Fix crash on client termination
Signed-off-by: Gregor Best <gbe_AT_ring0.de>
Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>
diff --git a/tabbed.c b/tabbed.c
index 9405644..d30206b 100644
--- a/tabbed.c
+++ b/tabbed.c
_AT_@ -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,
Received on Tue Jan 21 2014 - 19:23:33 CET
This archive was generated by hypermail 2.3.0
: Tue Jan 21 2014 - 19:24:18 CET