aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tabbed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tabbed.c b/tabbed.c
index aa45716..2fb5aa7 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -214,7 +214,7 @@ cleanup(void)
{
int i;
- for (i = 0; i < nclients; i++) {
+ for (i = nclients - 1; i >= 0; i--) {
focus(i);
killclient(NULL);
XReparentWindow(dpy, clients[i]->win, root, 0, 0);