diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-09-15 12:36:42 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-09-15 12:36:42 +0200 |
| commit | 9800518ae3505e54c0e52ea3d40050f279e722d6 (patch) | |
| tree | 130cae3ef3727c4fb0cff2e5be3a7735cd9eae56 | |
| parent | renamed config.default.h into config.h (diff) | |
| download | dwm-9800518ae3505e54c0e52ea3d40050f279e722d6.tar.gz dwm-9800518ae3505e54c0e52ea3d40050f279e722d6.zip | |
renamed drawstatus into drawbar
Diffstat (limited to '')
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | draw.c | 2 | ||||
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | event.c | 4 | ||||
| -rw-r--r-- | main.c | 4 | ||||
| -rw-r--r-- | screen.c | 6 |
6 files changed, 10 insertions, 10 deletions
| @@ -145,7 +145,7 @@ focus(Client *c) { | |||
| 145 | grabbuttons(c, True); | 145 | grabbuttons(c, True); |
| 146 | } | 146 | } |
| 147 | sel = c; | 147 | sel = c; |
| 148 | drawstatus(); | 148 | drawbar(); |
| 149 | if(!selscreen) | 149 | if(!selscreen) |
| 150 | return; | 150 | return; |
| 151 | if(c) { | 151 | if(c) { |
| @@ -49,7 +49,7 @@ textnw(const char *text, unsigned int len) { | |||
| 49 | /* extern */ | 49 | /* extern */ |
| 50 | 50 | ||
| 51 | void | 51 | void |
| 52 | drawstatus(void) { | 52 | drawbar(void) { |
| 53 | int i, x; | 53 | int i, x; |
| 54 | 54 | ||
| 55 | dc.x = dc.y = 0; | 55 | dc.x = dc.y = 0; |
| @@ -104,7 +104,7 @@ void updatesizehints(Client *c); /* update the size hint variables of c */ | |||
| 104 | void updatetitle(Client *c); /* update the name of c */ | 104 | void updatetitle(Client *c); /* update the name of c */ |
| 105 | 105 | ||
| 106 | /* draw.c */ | 106 | /* draw.c */ |
| 107 | void drawstatus(void); /* draw the bar */ | 107 | void drawbar(void); /* draw the bar */ |
| 108 | void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ | 108 | void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ |
| 109 | unsigned int textw(const char *text); /* return the width of text in px*/ | 109 | unsigned int textw(const char *text); /* return the width of text in px*/ |
| 110 | 110 | ||
| @@ -245,7 +245,7 @@ expose(XEvent *e) { | |||
| 245 | 245 | ||
| 246 | if(ev->count == 0) { | 246 | if(ev->count == 0) { |
| 247 | if(barwin == ev->window) | 247 | if(barwin == ev->window) |
| 248 | drawstatus(); | 248 | drawbar(); |
| 249 | } | 249 | } |
| 250 | } | 250 | } |
| 251 | 251 | ||
| @@ -322,7 +322,7 @@ propertynotify(XEvent *e) { | |||
| 322 | if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { | 322 | if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { |
| 323 | updatetitle(c); | 323 | updatetitle(c); |
| 324 | if(c == sel) | 324 | if(c == sel) |
| 325 | drawstatus(); | 325 | drawbar(); |
| 326 | } | 326 | } |
| 327 | } | 327 | } |
| 328 | } | 328 | } |
| @@ -326,7 +326,7 @@ main(int argc, char *argv[]) { | |||
| 326 | xerrorxlib = XSetErrorHandler(xerror); | 326 | xerrorxlib = XSetErrorHandler(xerror); |
| 327 | XSync(dpy, False); | 327 | XSync(dpy, False); |
| 328 | setup(); | 328 | setup(); |
| 329 | drawstatus(); | 329 | drawbar(); |
| 330 | scan(); | 330 | scan(); |
| 331 | 331 | ||
| 332 | /* main event loop, also reads status text from stdin */ | 332 | /* main event loop, also reads status text from stdin */ |
| @@ -359,7 +359,7 @@ main(int argc, char *argv[]) { | |||
| 359 | if(p > stext) | 359 | if(p > stext) |
| 360 | strncpy(stext, p + 1, sizeof stext); | 360 | strncpy(stext, p + 1, sizeof stext); |
| 361 | } | 361 | } |
| 362 | drawstatus(); | 362 | drawbar(); |
| 363 | } | 363 | } |
| 364 | while(XPending(dpy)) { | 364 | while(XPending(dpy)) { |
| 365 | XNextEvent(dpy, &ev); | 365 | XNextEvent(dpy, &ev); |
| @@ -213,7 +213,7 @@ restack(void) { | |||
| 213 | XEvent ev; | 213 | XEvent ev; |
| 214 | XWindowChanges wc; | 214 | XWindowChanges wc; |
| 215 | 215 | ||
| 216 | drawstatus(); | 216 | drawbar(); |
| 217 | if(!sel) | 217 | if(!sel) |
| 218 | return; | 218 | return; |
| 219 | if(sel->isfloating || isfloating()) | 219 | if(sel->isfloating || isfloating()) |
| @@ -255,7 +255,7 @@ setlayout(const char *arg) { | |||
| 255 | if(sel) | 255 | if(sel) |
| 256 | arrange(); | 256 | arrange(); |
| 257 | else | 257 | else |
| 258 | drawstatus(); | 258 | drawbar(); |
| 259 | } | 259 | } |
| 260 | 260 | ||
| 261 | void | 261 | void |
| @@ -307,7 +307,7 @@ togglemax(const char *arg) { | |||
| 307 | } | 307 | } |
| 308 | else | 308 | else |
| 309 | resize(sel, sel->rx, sel->ry, sel->rw, sel->rh, True); | 309 | resize(sel, sel->rx, sel->ry, sel->rw, sel->rh, True); |
| 310 | drawstatus(); | 310 | drawbar(); |
| 311 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | 311 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
| 312 | } | 312 | } |
| 313 | 313 | ||
