Mercurial > dwm-meillo
changeset 647:fd2ea58b0b94
renamed drawtitle into drawclient
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Thu, 04 Jan 2007 14:17:25 +0100 |
parents | 665e78838cbb |
children | 2359223e5691 |
files | client.c draw.c dwm.h event.c |
diffstat | 4 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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);
--- 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*/
--- 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); } } }