renamed drawstatus into drawbar
9800518a
6 file(s) · +10 −10
| 145 | 145 | grabbuttons(c, True); |
|
| 146 | 146 | } |
|
| 147 | 147 | sel = c; |
|
| 148 | - | drawstatus(); |
|
| 148 | + | drawbar(); |
|
| 149 | 149 | if(!selscreen) |
|
| 150 | 150 | return; |
|
| 151 | 151 | if(c) { |
| 49 | 49 | /* extern */ |
|
| 50 | 50 | ||
| 51 | 51 | void |
|
| 52 | - | drawstatus(void) { |
|
| 52 | + | drawbar(void) { |
|
| 53 | 53 | int i, x; |
|
| 54 | 54 | ||
| 55 | 55 | dc.x = dc.y = 0; |
| 104 | 104 | void updatetitle(Client *c); /* update the name of c */ |
|
| 105 | 105 | ||
| 106 | 106 | /* draw.c */ |
|
| 107 | - | void drawstatus(void); /* draw the bar */ |
|
| 107 | + | void drawbar(void); /* draw the bar */ |
|
| 108 | 108 | void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ |
|
| 109 | 109 | unsigned int textw(const char *text); /* return the width of text in px*/ |
|
| 110 | 110 |
| 245 | 245 | ||
| 246 | 246 | if(ev->count == 0) { |
|
| 247 | 247 | if(barwin == ev->window) |
|
| 248 | - | drawstatus(); |
|
| 248 | + | drawbar(); |
|
| 249 | 249 | } |
|
| 250 | 250 | } |
|
| 251 | 251 | ||
| 322 | 322 | if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { |
|
| 323 | 323 | updatetitle(c); |
|
| 324 | 324 | if(c == sel) |
|
| 325 | - | drawstatus(); |
|
| 325 | + | drawbar(); |
|
| 326 | 326 | } |
|
| 327 | 327 | } |
|
| 328 | 328 | } |
|
| 326 | 326 | xerrorxlib = XSetErrorHandler(xerror); |
|
| 327 | 327 | XSync(dpy, False); |
|
| 328 | 328 | setup(); |
|
| 329 | - | drawstatus(); |
|
| 329 | + | drawbar(); |
|
| 330 | 330 | scan(); |
|
| 331 | 331 | ||
| 332 | 332 | /* main event loop, also reads status text from stdin */ |
|
| 359 | 359 | if(p > stext) |
|
| 360 | 360 | strncpy(stext, p + 1, sizeof stext); |
|
| 361 | 361 | } |
|
| 362 | - | drawstatus(); |
|
| 362 | + | drawbar(); |
|
| 363 | 363 | } |
|
| 364 | 364 | while(XPending(dpy)) { |
|
| 365 | 365 | XNextEvent(dpy, &ev); |
|
| 213 | 213 | XEvent ev; |
|
| 214 | 214 | XWindowChanges wc; |
|
| 215 | 215 | ||
| 216 | - | drawstatus(); |
|
| 216 | + | drawbar(); |
|
| 217 | 217 | if(!sel) |
|
| 218 | 218 | return; |
|
| 219 | 219 | if(sel->isfloating || isfloating()) |
|
| 255 | 255 | if(sel) |
|
| 256 | 256 | arrange(); |
|
| 257 | 257 | else |
|
| 258 | - | drawstatus(); |
|
| 258 | + | drawbar(); |
|
| 259 | 259 | } |
|
| 260 | 260 | ||
| 261 | 261 | void |
|
| 307 | 307 | } |
|
| 308 | 308 | else |
|
| 309 | 309 | resize(sel, sel->rx, sel->ry, sel->rw, sel->rh, True); |
|
| 310 | - | drawstatus(); |
|
| 310 | + | drawbar(); |
|
| 311 | 311 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
|
| 312 | 312 | } |
|
| 313 | 313 | ||