Wmfs: Fix bug when reload (last client opened not managed)
This commit is contained in:
parent
a2815a49f0
commit
537aed921d
@ -180,7 +180,7 @@ scan(void)
|
|||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
if(XQueryTree(dpy, ROOT, &usl, &usl2, &w, &n))
|
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)
|
if(XGetWindowAttributes(dpy, w[i], &wa)
|
||||||
&& !(wa.override_redirect || XGetTransientForHint(dpy, w[i], &usl))
|
&& !(wa.override_redirect || XGetTransientForHint(dpy, w[i], &usl))
|
||||||
&& wa.map_state == IsViewable)
|
&& wa.map_state == IsViewable)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user