Wmfs: Fix bug when reload (last client opened not managed)

This commit is contained in:
Martin Duquesnoy 2009-09-09 14:06:09 +02:00
parent a2815a49f0
commit 537aed921d

View File

@ -180,7 +180,7 @@ scan(void)
Client *c;
if(XQueryTree(dpy, ROOT, &usl, &usl2, &w, &n))
for(i = n - 1; i != 0; --i)
for(i = n - 1; i != -1; --i)
if(XGetWindowAttributes(dpy, w[i], &wa)
&& !(wa.override_redirect || XGetTransientForHint(dpy, w[i], &usl))
&& wa.map_state == IsViewable)