Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
status box should have a border in my eyes
[dwm.git]
/
draw.c
diff --git
a/draw.c
b/draw.c
index
506a862
..
16f934d
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-114,7
+114,7
@@
drawstatus()
drawtext(NULL, !istile, False);
dc.w = 0;
drawtext(NULL, !istile, False);
dc.w = 0;
- for(i = 0; i <
TLast
; i++) {
+ for(i = 0; i <
ntags
; i++) {
dc.x += dc.w;
dc.w = textw(tags[i]);
if(istile)
dc.x += dc.w;
dc.w = textw(tags[i]);
if(istile)
@@
-125,7
+125,7
@@
drawstatus()
x = dc.x + dc.w;
dc.w = textw(stext);
dc.x = bx + bw - dc.w;
x = dc.x + dc.w;
dc.w = textw(stext);
dc.x = bx + bw - dc.w;
- drawtext(stext, !istile,
Fals
e);
+ drawtext(stext, !istile,
Tru
e);
if(sel && ((dc.w = dc.x - x) >= bh)) {
dc.x = x;
drawtext(sel->name, istile, True);
if(sel && ((dc.w = dc.x - x) >= bh)) {
dc.x = x;
drawtext(sel->name, istile, True);
@@
-153,7
+153,7
@@
drawtitle(Client *c)
dc.x = dc.y = 0;
dc.w = 0;
dc.x = dc.y = 0;
dc.w = 0;
- for(i = 0; i <
TLast
; i++) {
+ for(i = 0; i <
ntags
; i++) {
if(c->tags[i]) {
dc.x += dc.w;
dc.w = textw(tags[i]);
if(c->tags[i]) {
dc.x += dc.w;
dc.w = textw(tags[i]);