void updatesizehints(Client *c);
void updatetitle(Client *c);
void view(const char *arg);
void updatesizehints(Client *c);
void updatetitle(Client *c);
void view(const char *arg);
- for(i = 0; i < LENGTH(tags); i++) {
- m->dc.w = textw(m, tags[i]);
- if(m->seltags[i]) {
- drawtext(m, tags[i], m->dc.sel);
- drawsquare(m, sel && sel->tags[i] && sel->monitor == selmonitor, isoccupied(m, i), m->dc.sel);
+ for(j = 0; j < LENGTH(tags); j++) {
+ m->dc.w = textw(m, tags[j]);
+ if(m->seltags[j]) {
+ drawtext(m, tags[j], m->dc.sel);
+ drawsquare(m, sel && sel->tags[j] && sel->monitor == selmonitor, isoccupied(m, j), m->dc.sel);
- drawtext(m, tags[i], m->dc.norm);
- drawsquare(m, sel && sel->tags[i] && sel->monitor == selmonitor, isoccupied(m, i), m->dc.norm);
+ drawtext(m, tags[j], m->dc.norm);
+ drawsquare(m, sel && sel->tags[j] && sel->monitor == selmonitor, isoccupied(m, j), m->dc.norm);
XConfigureWindow(dpy, sel->win, CWSibling | CWStackMode, &wc);
wc.sibling = sel->win;
}
XConfigureWindow(dpy, sel->win, CWSibling | CWStackMode, &wc);
wc.sibling = sel->win;
}
- for(s = 0; s < mcount; s++) {
- for(c = nexttiled(clients, &monitors[s]); c; c = nexttiled(c->next, &monitors[s])) {
+ for(i = 0; i < mcount; i++) {
+ for(c = nexttiled(clients, &monitors[i]); c; c = nexttiled(c->next, &monitors[i])) {
if(c == sel)
continue;
XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
if(c == sel)
continue;
XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
- unsigned int i, n, nx, ny, nw, nh, mw, th;
- int s;
+ unsigned int i, j, n, nx, ny, nw, nh, mw, th;
for(n = 0, c = nexttiled(clients, m); c; c = nexttiled(c->next, m))
n++;
for(n = 0, c = nexttiled(clients, m); c; c = nexttiled(c->next, m))
n++;
- for(i = 0, c = mc = nexttiled(clients, m); c; c = nexttiled(c->next, m)) {
+ for(j = 0, c = mc = nexttiled(clients, m); c; c = nexttiled(c->next, m)) {
- s->wah -= bh;
- s->way += bh;
- XMoveWindow(dpy, s->barwin, s->sx, s->sy);
+ m->wah -= bh;
+ m->way += bh;
+ XMoveWindow(dpy, m->barwin, m->sx, m->sy);
- s->wah -= bh;
- XMoveWindow(dpy, s->barwin, s->sx, s->sy + s->wah);
+ m->wah -= bh;
+ XMoveWindow(dpy, m->barwin, m->sx, m->sy + m->wah);
- XMoveWindow(dpy, s->barwin, s->sx, s->sy - bh);
+ XMoveWindow(dpy, m->barwin, m->sx, m->sy - bh);