mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
indicators: Adding the NONE indicator to disable e.g. indicators for tags
This commit is contained in:
parent
b714329d87
commit
8ff0adeabd
@ -13,7 +13,7 @@ void
|
|||||||
drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned int tag, int filled, int invert, int type)
|
drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned int tag, int filled, int invert, int type)
|
||||||
{
|
{
|
||||||
int i, boxw, boxs, indn = 0;
|
int i, boxw, boxs, indn = 0;
|
||||||
if (!(occ & 1 << tag))
|
if (!(occ & 1 << tag) || type == INDICATOR_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
boxs = drw->fonts->h / 9;
|
boxs = drw->fonts->h / 9;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
enum {
|
enum {
|
||||||
|
INDICATOR_NONE,
|
||||||
INDICATOR_TOP_LEFT_SQUARE,
|
INDICATOR_TOP_LEFT_SQUARE,
|
||||||
INDICATOR_TOP_LEFT_LARGER_SQUARE,
|
INDICATOR_TOP_LEFT_LARGER_SQUARE,
|
||||||
INDICATOR_TOP_BAR,
|
INDICATOR_TOP_BAR,
|
||||||
|
Loading…
Reference in New Issue
Block a user