summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_flexwintitle.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-08-27 21:37:19 +0200
committerbakkeby <[email protected]>2020-08-27 21:37:19 +0200
commit0d743eddffe091acaa7d0737f86dd60775b95831 (patch)
tree637e1f813e19bd27c7e258649525e72d48c8234b /patch/bar_flexwintitle.c
parentd8ebab4f754a8a4a5c9cc3256431a498e767277f (diff)
downloaddwm-flexipatch-0d743eddffe091acaa7d0737f86dd60775b95831.tar.gz
dwm-flexipatch-0d743eddffe091acaa7d0737f86dd60775b95831.zip
flexwintitle: allow flexwintitle to control window borders
Diffstat (limited to 'patch/bar_flexwintitle.c')
-rw-r--r--patch/bar_flexwintitle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/patch/bar_flexwintitle.c b/patch/bar_flexwintitle.c
index 4e2ecc9..216c802 100644
--- a/patch/bar_flexwintitle.c
+++ b/patch/bar_flexwintitle.c
@@ -171,8 +171,7 @@ flextitledraw(Monitor *m, Client *c, int unused, int x, int w, int tabscheme, Ar
if (!c)
return;
int i, nclienttags = 0, nviewtags = 0, pad = lrpad / 2;
-
- drw_setscheme(drw, scheme[(
+ int clientscheme = (
c == m->sel
? getselschemefor(tabscheme)
: HIDDEN(c)
@@ -180,7 +179,9 @@ flextitledraw(Monitor *m, Client *c, int unused, int x, int w, int tabscheme, Ar
: c->isurgent
? SchemeUrg
: tabscheme
- )]);
+ );
+ drw_setscheme(drw, scheme[clientscheme]);
+ XSetWindowBorder(dpy, c->win, scheme[clientscheme][ColBorder].pixel);
if (w <= TEXTW("A") - lrpad + pad) // reduce text padding if wintitle is too small
pad = (w - TEXTW("A") + lrpad < 0 ? 0 : (w - TEXTW("A") + lrpad) / 2);
#if BAR_CENTEREDWINDOWNAME_PATCH