int i;
unsigned int ui;
float f;
- void *v;
+ const void *v;
} Arg;
typedef struct {
Client *stack;
Monitor *next;
Window barwin;
- Layout *lt[2];
+ const Layout *lt[2];
};
typedef struct {
void
applyrules(Client *c) {
unsigned int i;
- Rule *r;
+ const Rule *r;
XClassHint ch = { 0 };
/* rule matching */
if(XineramaIsActive(dpy))
info = XineramaQueryScreens(dpy, &n);
#endif /* XINERAMA */
+ if(n > LENGTH(monsyms))
+ n = LENGTH(monsyms);
/* allocate monitor(s) for the new geometry setup */
for(i = 0; i < n; i++) {
if(!(m = (Monitor *)malloc(sizeof(Monitor))))
m->sellt = 0;
m->tagset[0] = m->tagset[1] = 1;
m->mfact = mfact;
- m->showbar = SHOWBAR;
- m->topbar = TOPBAR;
+ m->showbar = showbar;
+ m->topbar = topbar;
m->lt[0] = &layouts[0];
m->lt[1] = &layouts[1 % LENGTH(layouts)];
updatebarpos(m);