summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-04 14:17:25 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-04 14:17:25 +0100
commit184471b4bbd1736794a76d2b703659de0339322b (patch)
treedcf73c074aeb9c3a06abdaaf93e3a15d27e02d05
parentusing more thinkpad compliant colors (diff)
downloaddwm-184471b4bbd1736794a76d2b703659de0339322b.tar.gz
dwm-184471b4bbd1736794a76d2b703659de0339322b.zip
renamed drawtitle into drawclient
Diffstat (limited to '')
-rw-r--r--client.c4
-rw-r--r--draw.c4
-rw-r--r--dwm.h2
-rw-r--r--event.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/client.c b/client.c
index a6b7815..8110263 100644
--- a/client.c
+++ b/client.c
@@ -96,7 +96,7 @@ focus(Client *c) {
96 sel = c; 96 sel = c;
97 if(old) { 97 if(old) {
98 grabbuttons(old, False); 98 grabbuttons(old, False);
99 drawtitle(old); 99 drawclient(old);
100 } 100 }
101 } 101 }
102 if(c) { 102 if(c) {
@@ -104,7 +104,7 @@ focus(Client *c) {
104 c->snext = stack; 104 c->snext = stack;
105 stack = c; 105 stack = c;
106 grabbuttons(c, True); 106 grabbuttons(c, True);
107 drawtitle(c); 107 drawclient(c);
108 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); 108 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
109 } 109 }
110 else 110 else
diff --git a/draw.c b/draw.c
index c4448db..9a469f9 100644
--- a/draw.c
+++ b/draw.c
@@ -102,7 +102,7 @@ drawall(void) {
102 Client *c; 102 Client *c;
103 103
104 for(c = clients; c; c = getnext(c->next)) 104 for(c = clients; c; c = getnext(c->next))
105 drawtitle(c); 105 drawclient(c);
106 drawstatus(); 106 drawstatus();
107} 107}
108 108
@@ -138,7 +138,7 @@ drawstatus(void) {
138} 138}
139 139
140void 140void
141drawtitle(Client *c) { 141drawclient(Client *c) {
142 if(c == sel && issel) { 142 if(c == sel && issel) {
143 drawstatus(); 143 drawstatus();
144 XUnmapWindow(dpy, c->twin); 144 XUnmapWindow(dpy, c->twin);
diff --git a/dwm.h b/dwm.h
index a77c3bd..e6daa33 100644
--- a/dwm.h
+++ b/dwm.h
@@ -124,7 +124,7 @@ extern void unmanage(Client *c); /* destroy c */
124/* draw.c */ 124/* draw.c */
125extern void drawall(void); /* draw all visible client titles and the bar */ 125extern void drawall(void); /* draw all visible client titles and the bar */
126extern void drawstatus(void); /* draw the bar */ 126extern void drawstatus(void); /* draw the bar */
127extern void drawtitle(Client *c); /* draw title of c */ 127extern void drawclient(Client *c); /* draw title of c */
128extern unsigned long getcolor(const char *colstr); /* return color of colstr */ 128extern unsigned long getcolor(const char *colstr); /* return color of colstr */
129extern void setfont(const char *fontstr); /* set the font for DC */ 129extern void setfont(const char *fontstr); /* set the font for DC */
130extern unsigned int textw(const char *text); /* return the width of text in px*/ 130extern 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
--- a/event.c
+++ b/event.c
@@ -236,7 +236,7 @@ expose(XEvent *e) {
236 if(barwin == ev->window) 236 if(barwin == ev->window)
237 drawstatus(); 237 drawstatus();
238 else if((c = getctitle(ev->window))) 238 else if((c = getctitle(ev->window)))
239 drawtitle(c); 239 drawclient(c);
240 } 240 }
241} 241}
242 242
@@ -320,7 +320,7 @@ propertynotify(XEvent *e) {
320 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { 320 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
321 updatetitle(c); 321 updatetitle(c);
322 resizetitle(c); 322 resizetitle(c);
323 drawtitle(c); 323 drawclient(c);
324 } 324 }
325 } 325 }
326} 326}