grabbuttons(c, True);
}
sel = c;
- drawstatus();
+ drawbar();
if(!selscreen)
return;
if(c) {
/* extern */
void
-drawstatus(void) {
+drawbar(void) {
int i, x;
dc.x = dc.y = 0;
void updatetitle(Client *c); /* update the name of c */
/* draw.c */
-void drawstatus(void); /* draw the bar */
+void drawbar(void); /* draw the bar */
void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */
unsigned int textw(const char *text); /* return the width of text in px*/
if(ev->count == 0) {
if(barwin == ev->window)
- drawstatus();
+ drawbar();
}
}
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
updatetitle(c);
if(c == sel)
- drawstatus();
+ drawbar();
}
}
}
xerrorxlib = XSetErrorHandler(xerror);
XSync(dpy, False);
setup();
- drawstatus();
+ drawbar();
scan();
/* main event loop, also reads status text from stdin */
if(p > stext)
strncpy(stext, p + 1, sizeof stext);
}
- drawstatus();
+ drawbar();
}
while(XPending(dpy)) {
XNextEvent(dpy, &ev);
XEvent ev;
XWindowChanges wc;
- drawstatus();
+ drawbar();
if(!sel)
return;
if(sel->isfloating || isfloating())
if(sel)
arrange();
else
- drawstatus();
+ drawbar();
}
void
}
else
resize(sel, sel->rx, sel->ry, sel->rw, sel->rh, True);
- drawstatus();
+ drawbar();
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}