/* extern */
char stext[1024];
-int tsel = DEFTAG;
+Bool *tsel;
int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
unsigned int ntags;
Atom wmatom[WMLast], netatom[NetLast];
initrregs();
for(ntags = 0; tags[ntags]; ntags++);
+ tsel = emallocz(sizeof(Bool) * ntags);
+ tsel[DEFTAG] = True;
/* style */
dc.bg = getcolor(BGCOLOR);
scan();
/* main event loop, also reads status text from stdin */
+ XSync(dpy, False);
while(running) {
FD_ZERO(&rd);
if(readin)