# HG changeset patch # User Anselm R. Garbe # Date 1167916645 -3600 # Node ID fd2ea58b0b94dc49b0544aaff1a3fa790bb76345 # Parent 665e78838cbb1fea6584f329190e14c089428289 renamed drawtitle into drawclient diff -r 665e78838cbb -r fd2ea58b0b94 client.c --- a/client.c Tue Jan 02 16:29:01 2007 +0100 +++ b/client.c Thu Jan 04 14:17:25 2007 +0100 @@ -96,7 +96,7 @@ sel = c; if(old) { grabbuttons(old, False); - drawtitle(old); + drawclient(old); } } if(c) { @@ -104,7 +104,7 @@ c->snext = stack; stack = c; grabbuttons(c, True); - drawtitle(c); + drawclient(c); XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); } else diff -r 665e78838cbb -r fd2ea58b0b94 draw.c --- a/draw.c Tue Jan 02 16:29:01 2007 +0100 +++ b/draw.c Thu Jan 04 14:17:25 2007 +0100 @@ -102,7 +102,7 @@ Client *c; for(c = clients; c; c = getnext(c->next)) - drawtitle(c); + drawclient(c); drawstatus(); } @@ -138,7 +138,7 @@ } void -drawtitle(Client *c) { +drawclient(Client *c) { if(c == sel && issel) { drawstatus(); XUnmapWindow(dpy, c->twin); diff -r 665e78838cbb -r fd2ea58b0b94 dwm.h --- a/dwm.h Tue Jan 02 16:29:01 2007 +0100 +++ b/dwm.h Thu Jan 04 14:17:25 2007 +0100 @@ -124,7 +124,7 @@ /* 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*/ diff -r 665e78838cbb -r fd2ea58b0b94 event.c --- a/event.c Tue Jan 02 16:29:01 2007 +0100 +++ b/event.c Thu Jan 04 14:17:25 2007 +0100 @@ -236,7 +236,7 @@ if(barwin == ev->window) drawstatus(); else if((c = getctitle(ev->window))) - drawtitle(c); + drawclient(c); } } @@ -320,7 +320,7 @@ if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); resizetitle(c); - drawtitle(c); + drawclient(c); } } }