Wmfs: Keep client order when reloading.

This commit is contained in:
Martin Duquesnoy 2009-09-06 16:11:23 +02:00
parent 543320486c
commit bc3728bdb0

View File

@ -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)