mirror of
https://github.com/tiyn/dwm.git
synced 2025-04-19 15:57:45 +02:00
Merge branch 'activetagindicatorbar'
This commit is contained in:
commit
26cfaf6afd
17
dwm-activetagindicatorbar-6.2.diff
Normal file
17
dwm-activetagindicatorbar-6.2.diff
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff -up dwm-a/dwm.c dwm-b/dwm.c
|
||||||
|
--- dwm-a/dwm.c 2019-02-02 06:55:28.000000000 -0600
|
||||||
|
+++ dwm-b/dwm.c 2019-02-23 21:43:13.359179100 -0600
|
||||||
|
@@ -719,9 +719,10 @@ drawbar(Monitor *m)
|
||||||
|
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
||||||
|
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
||||||
|
if (occ & 1 << i)
|
||||||
|
- drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
||||||
|
- m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
||||||
|
- urg & 1 << i);
|
||||||
|
+ drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw,
|
||||||
|
+ m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
||||||
|
+ urg & 1 << i);
|
||||||
|
+
|
||||||
|
x += w;
|
||||||
|
}
|
||||||
|
w = blw = TEXTW(m->ltsymbol);
|
3
dwm.c
3
dwm.c
@ -1029,9 +1029,10 @@ drawbar(Monitor *m)
|
|||||||
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
||||||
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
||||||
if (occ & 1 << i)
|
if (occ & 1 << i)
|
||||||
drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw,
|
||||||
m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
||||||
urg & 1 << i);
|
urg & 1 << i);
|
||||||
|
|
||||||
x += w;
|
x += w;
|
||||||
}
|
}
|
||||||
w = blw = TEXTW(m->ltsymbol);
|
w = blw = TEXTW(m->ltsymbol);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user