mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
make this XQueryTree like the other
This commit is contained in:
parent
ad96c16838
commit
8a6dd51fac
22
screen.c
22
screen.c
@ -97,19 +97,17 @@ 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;
|
||||
|
||||
for (s = 0, i = 0; i < nwins; i++) {
|
||||
/* Skip hidden windows */
|
||||
if ((cc = client_find(wins[i])) == NULL ||
|
||||
cc->flags & CLIENT_HIDDEN)
|
||||
continue;
|
||||
|
||||
cc->stackingorder = s++;
|
||||
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 ||
|
||||
cc->flags & CLIENT_HIDDEN)
|
||||
continue;
|
||||
|
||||
cc->stackingorder = s++;
|
||||
}
|
||||
XFree(wins);
|
||||
}
|
||||
|
||||
XFree(wins);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user