From bc3728bdb0ef90e5d5f53b5bdfee0b24fb085806 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sun, 6 Sep 2009 16:11:23 +0200 Subject: [PATCH] Wmfs: Keep client order when reloading. --- src/wmfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wmfs.c b/src/wmfs.c index 6516fdf..8523b92 100644 --- a/src/wmfs.c +++ b/src/wmfs.c @@ -180,7 +180,7 @@ scan(void) Client *c; if(XQueryTree(dpy, ROOT, &usl, &usl2, &w, &n)) - for(i = 0; i < n; ++i) + for(i = n - 1; i != 0; --i) if(XGetWindowAttributes(dpy, w[i], &wa) && !(wa.override_redirect || XGetTransientForHint(dpy, w[i], &usl)) && wa.map_state == IsViewable)