if client is focused, the emptysquare don't needs to be drawed
48818574
1 file(s) · +3 −3
| 30 | 30 | } |
|
| 31 | 31 | ||
| 32 | 32 | static void |
|
| 33 | - | drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool emptydot) { |
|
| 33 | + | drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool emptysquare) { |
|
| 34 | 34 | int x, y, w, h; |
|
| 35 | 35 | static char buf[256]; |
|
| 36 | 36 | unsigned int len, olen; |
|
| 75 | 75 | XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); |
|
| 76 | 76 | } |
|
| 77 | 77 | x = (h + 2) / 4; |
|
| 78 | - | if(filleddot) { |
|
| 78 | + | if(filledsquare) { |
|
| 79 | 79 | r.x = dc.x + 2; |
|
| 80 | 80 | r.y = dc.y + 2; |
|
| 81 | 81 | r.width = r.height = x; |
|
| 82 | 82 | XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); |
|
| 83 | 83 | } |
|
| 84 | - | if(emptydot) { |
|
| 84 | + | else if(emptysquare) { |
|
| 85 | 85 | pt[0].x = dc.x + 2; |
|
| 86 | 86 | pt[0].y = dc.y + 2; |
|
| 87 | 87 | pt[1].x = x; |
|