Fix: Indicators
This commit is contained in:
parent
9790ba745e
commit
e21180452f
10
options.h
10
options.h
|
@ -346,8 +346,14 @@ static char *usedtags[] = { "[1]", /* Tag 1 text (occupie
|
|||
};
|
||||
|
||||
/* Icon misc */
|
||||
static XPoint stickyicon[] = { {0,0}, {4,0}, {4,8}, {2,6}, {0,8}, {0,0} }; /* represents the icon as an array of vertices */
|
||||
static XPoint stickyiconbb = {4,8}; /* defines the bottom right corner of the polygon's bounding box (speeds up scaling) */
|
||||
static XPoint stickyicon[] = { {0,0}, /* represents the icon as an array of vertices */
|
||||
{4,0},
|
||||
{4,8},
|
||||
{2,6},
|
||||
{0,8},
|
||||
{0,0},
|
||||
};
|
||||
static XPoint stickyiconbb = {4,8}; /* defines the bottom right corner of the polygon's bounding box (speeds up scaling) */
|
||||
|
||||
/* You have reached the end of the configuration file.
|
||||
* For keybinds, see 'keybinds.h'
|
||||
|
|
|
@ -1758,6 +1758,7 @@ drawbar(Monitor *m)
|
|||
tw = statusw = m->ww - drawstatusbar(m, bh, stext);
|
||||
}
|
||||
|
||||
// for statuscmd
|
||||
for (text = s = stext; *s; s++) {
|
||||
if ((unsigned char)(*s) < ' ') {
|
||||
ch = *s;
|
||||
|
@ -1863,20 +1864,24 @@ drawbar(Monitor *m)
|
|||
}
|
||||
}
|
||||
|
||||
x += tabw;
|
||||
|
||||
// Draw sticky window indicator
|
||||
if (c->issticky && !hidesticky) {
|
||||
drw_polygon(drw, x + boxs, c->isfloating ? boxs * 2 + boxw : boxs, stickyiconbb.x, stickyiconbb.y, boxw, boxw * stickyiconbb.y / stickyiconbb.x, stickyicon, LENGTH(stickyicon), Nonconvex, c->tags & c->mon->tagset[c->mon->seltags]);
|
||||
}
|
||||
|
||||
// Draw floating window indicator
|
||||
if (c->isfloating && !hidefloating) {
|
||||
drw_rect(drw, x + boxs, boxs, boxw, boxw, c->isfixed, 0);
|
||||
}
|
||||
|
||||
x += tabw;
|
||||
}
|
||||
} else {
|
||||
drw_setscheme(drw, scheme[SchemeBar]);
|
||||
drw_rect(drw, x, 0, w, bh, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
m->bt = n;
|
||||
m->btw = w;
|
||||
drw_map(drw, m->barwin, 0, 0, m->ww, bh);
|
||||
|
|
Loading…
Reference in a new issue