sel = c;
if(old) {
grabbuttons(old, False);
- drawtitle(old);
+ drawclient(old);
}
}
if(c) {
c->snext = stack;
stack = c;
grabbuttons(c, True);
- drawtitle(c);
+ drawclient(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
}
else
Client *c;
for(c = clients; c; c = getnext(c->next))
- drawtitle(c);
+ drawclient(c);
drawstatus();
}
}
void
-drawtitle(Client *c) {
+drawclient(Client *c) {
if(c == sel && issel) {
drawstatus();
XUnmapWindow(dpy, c->twin);
/* draw.c */
extern void drawall(void); /* draw all visible client titles and the bar */
extern void drawstatus(void); /* draw the bar */
-extern void drawtitle(Client *c); /* draw title of c */
+extern void drawclient(Client *c); /* draw title of c */
extern unsigned long getcolor(const char *colstr); /* return color of colstr */
extern void setfont(const char *fontstr); /* set the font for DC */
extern unsigned int textw(const char *text); /* return the width of text in px*/