mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Fix wins comparison declaration since it's unsigned from XQueryTree().
This commit is contained in:
parent
03a2e9cf05
commit
f34e659ca7
7
screen.c
7
screen.c
@ -37,7 +37,8 @@ screen_init(int which)
|
|||||||
struct screen_ctx *sc;
|
struct screen_ctx *sc;
|
||||||
Window *wins, w0, w1, active = None;
|
Window *wins, w0, w1, active = None;
|
||||||
XSetWindowAttributes rootattr;
|
XSetWindowAttributes rootattr;
|
||||||
unsigned int nwins, i;
|
unsigned int nwins, w;
|
||||||
|
int i;
|
||||||
|
|
||||||
sc = xmalloc(sizeof(*sc));
|
sc = xmalloc(sizeof(*sc));
|
||||||
|
|
||||||
@ -77,8 +78,8 @@ screen_init(int which)
|
|||||||
|
|
||||||
/* Deal with existing clients. */
|
/* Deal with existing clients. */
|
||||||
if (XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins)) {
|
if (XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins)) {
|
||||||
for (i = 0; i < nwins; i++)
|
for (w = 0; w < nwins; w++)
|
||||||
(void)client_init(wins[i], sc, (active == wins[i]));
|
(void)client_init(wins[w], sc, (active == wins[w]));
|
||||||
|
|
||||||
XFree(wins);
|
XFree(wins);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user