diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-01-04 14:17:25 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-04 14:17:25 +0100 |
| commit | 184471b4bbd1736794a76d2b703659de0339322b (patch) | |
| tree | dcf73c074aeb9c3a06abdaaf93e3a15d27e02d05 | |
| parent | using more thinkpad compliant colors (diff) | |
| download | dwm-184471b4bbd1736794a76d2b703659de0339322b.tar.gz dwm-184471b4bbd1736794a76d2b703659de0339322b.zip | |
renamed drawtitle into drawclient
| -rw-r--r-- | client.c | 4 | ||||
| -rw-r--r-- | draw.c | 4 | ||||
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | event.c | 4 |
4 files changed, 7 insertions, 7 deletions
| @@ -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 |
| @@ -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 | ||
| 140 | void | 140 | void |
| 141 | drawtitle(Client *c) { | 141 | drawclient(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); |
| @@ -124,7 +124,7 @@ extern void unmanage(Client *c); /* destroy c */ | |||
| 124 | /* draw.c */ | 124 | /* draw.c */ |
| 125 | extern void drawall(void); /* draw all visible client titles and the bar */ | 125 | extern void drawall(void); /* draw all visible client titles and the bar */ |
| 126 | extern void drawstatus(void); /* draw the bar */ | 126 | extern void drawstatus(void); /* draw the bar */ |
| 127 | extern void drawtitle(Client *c); /* draw title of c */ | 127 | extern void drawclient(Client *c); /* draw title of c */ |
| 128 | extern unsigned long getcolor(const char *colstr); /* return color of colstr */ | 128 | extern unsigned long getcolor(const char *colstr); /* return color of colstr */ |
| 129 | extern void setfont(const char *fontstr); /* set the font for DC */ | 129 | extern void setfont(const char *fontstr); /* set the font for DC */ |
| 130 | extern unsigned int textw(const char *text); /* return the width of text in px*/ | 130 | extern unsigned int textw(const char *text); /* return the width of text in px*/ |
| @@ -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 | } |
