From 251e3a23de3f2826baad6f1187b4f48351742b0b Mon Sep 17 00:00:00 2001 From: bakkeby Date: Thu, 5 Nov 2020 12:16:38 +0100 Subject: [PATCH] Adding tiled indicators as suggested in #68 --- config.def.h | 1 + patch/bar_indicators.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config.def.h b/config.def.h index 2b7194c..aeb1c8e 100644 --- a/config.def.h +++ b/config.def.h @@ -65,6 +65,7 @@ static const int showsystray = 1; /* 0 means no systray */ #endif // BAR_SYSTRAY_PATCH /* Indicators: see patch/bar_indicators.h for options */ static int tagindicatortype = INDICATOR_TOP_LEFT_SQUARE; +static int tiledindicatortype = INDICATOR_NONE; static int floatindicatortype = INDICATOR_TOP_LEFT_SQUARE; #if FAKEFULLSCREEN_CLIENT_PATCH static int fakefsindicatortype = INDICATOR_PLUS; diff --git a/patch/bar_indicators.c b/patch/bar_indicators.c index 7f22a45..644e072 100644 --- a/patch/bar_indicators.c +++ b/patch/bar_indicators.c @@ -105,4 +105,6 @@ drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, #endif // FAKEFULLSCREEN_CLIENT_PATCH if (c->isfloating) drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, floatindicatortype); + else + drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, tiledindicatortype); } \ No newline at end of file