JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
renamed drawtitle into drawclient
authorAnselm R. Garbe <arg@suckless.org>
Thu, 4 Jan 2007 13:17:25 +0000 (14:17 +0100)
committerAnselm R. Garbe <arg@suckless.org>
Thu, 4 Jan 2007 13:17:25 +0000 (14:17 +0100)
client.c
draw.c
dwm.h
event.c

index a6b7815..8110263 100644 (file)
--- a/client.c
+++ b/client.c
@@ -96,7 +96,7 @@ focus(Client *c) {
                sel = c;
                if(old) {
                        grabbuttons(old, False);
-                       drawtitle(old);
+                       drawclient(old);
                }
        }
        if(c) {
@@ -104,7 +104,7 @@ focus(Client *c) {
                c->snext = stack;
                stack = c;
                grabbuttons(c, True);
-               drawtitle(c);
+               drawclient(c);
                XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
        }
        else
diff --git a/draw.c b/draw.c
index c4448db..9a469f9 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -102,7 +102,7 @@ drawall(void) {
        Client *c;
 
        for(c = clients; c; c = getnext(c->next))
-               drawtitle(c);
+               drawclient(c);
        drawstatus();
 }
 
@@ -138,7 +138,7 @@ drawstatus(void) {
 }
 
 void
-drawtitle(Client *c) {
+drawclient(Client *c) {
        if(c == sel && issel) {
                drawstatus();
                XUnmapWindow(dpy, c->twin);
diff --git a/dwm.h b/dwm.h
index a77c3bd..e6daa33 100644 (file)
--- a/dwm.h
+++ b/dwm.h
@@ -124,7 +124,7 @@ extern void unmanage(Client *c);            /* destroy c */
 /* 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 --git a/event.c b/event.c
index 0043ed2..c9ad387 100644 (file)
--- a/event.c
+++ b/event.c
@@ -236,7 +236,7 @@ expose(XEvent *e) {
                if(barwin == ev->window)
                        drawstatus();
                else if((c = getctitle(ev->window)))
-                       drawtitle(c);
+                       drawclient(c);
        }
 }
 
@@ -320,7 +320,7 @@ propertynotify(XEvent *e) {
                if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
                        updatetitle(c);
                        resizetitle(c);
-                       drawtitle(c);
+                       drawclient(c);
                }
        }
 }