make this XQueryTree like the other

This commit is contained in:
okan 2014-02-03 20:29:05 +00:00
parent ad96c16838
commit 8a6dd51fac

View File

@ -97,9 +97,7 @@ screen_updatestackingorder(struct screen_ctx *sc)
struct client_ctx *cc;
unsigned int nwins, i, s;
if (!XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins))
return;
if (XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins)) {
for (s = 0, i = 0; i < nwins; i++) {
/* Skip hidden windows */
if ((cc = client_find(wins[i])) == NULL ||
@ -108,8 +106,8 @@ screen_updatestackingorder(struct screen_ctx *sc)
cc->stackingorder = s++;
}
XFree(wins);
}
}
/*