summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_indicators.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-16 11:07:23 +0200
committerbakkeby <[email protected]>2020-09-16 11:07:23 +0200
commit7275ca47ffe049fd2dbf60c606ef2cf2d909b6c6 (patch)
treef321fdab9f49c9b84ff611237f8968f729457bbe /patch/bar_indicators.c
parentb8dc848918d7a07412d5fb1be74a9ac44862a028 (diff)
downloaddwm-flexipatch-7275ca47ffe049fd2dbf60c606ef2cf2d909b6c6.tar.gz
dwm-flexipatch-7275ca47ffe049fd2dbf60c606ef2cf2d909b6c6.zip
Experimenting with having more status indicators than just whether the client is floating or not
Diffstat (limited to 'patch/bar_indicators.c')
-rw-r--r--patch/bar_indicators.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/patch/bar_indicators.c b/patch/bar_indicators.c
index 624aff7..90eb1a0 100644
--- a/patch/bar_indicators.c
+++ b/patch/bar_indicators.c
@@ -77,5 +77,32 @@ drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int
);
}
break;
+ case INDICATOR_PLUS_AND_LARGER_SQUARE:
+ boxs += 2;
+ boxw += 2;
+ /* falls through */
+ case INDICATOR_PLUS_AND_SQUARE:
+ drw_rect(drw, x + boxs, y + boxs, boxw % 2 ? boxw : boxw + 1, boxw % 2 ? boxw : boxw + 1, filled, invert);
+ /* falls through */
+ case INDICATOR_PLUS:
+ if (!(boxw % 2))
+ boxw += 1;
+ drw_rect(drw, x + boxs + boxw / 2, y + boxs, 1, boxw, filled, invert); // |
+ drw_rect(drw, x + boxs, y + boxs + boxw / 2, boxw + 1, 1, filled, invert); // ‒
+ break;
}
+}
+
+void
+drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int h, unsigned int tag, int filled, int invert)
+{
+ #if FAKEFULLSCREEN_CLIENT_PATCH
+ if (c->fakefullscreen && c->isfloating)
+ drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, floatfakefsindicatortype);
+ else if (c->fakefullscreen)
+ drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, fakefsindicatortype);
+ else
+ #endif // FAKEFULLSCREEN_CLIENT_PATCH
+ if (c->isfloating)
+ drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, floatindicatortype);
} \ No newline at end of file