diff options
| author | bakkeby <[email protected]> | 2020-08-22 16:25:56 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-08-22 16:25:56 +0200 |
| commit | 32819a48f3efb57c010d3d27c6b2a537916793b2 (patch) | |
| tree | 5d3b1d5436ea37504f62f9f3b56cbe16a69711a3 /patch/bar_wintitle.c | |
| parent | 512a656ddddc588b2d406f344cfc160c9c2c81b5 (diff) | |
| download | dwm-flexipatch-32819a48f3efb57c010d3d27c6b2a537916793b2.tar.gz dwm-flexipatch-32819a48f3efb57c010d3d27c6b2a537916793b2.zip | |
Added clientindicators patch and unified and simplified indicator code. Enabled centeredwindowname option for awesomebar and bartabgroups patches.
Diffstat (limited to 'patch/bar_wintitle.c')
| -rw-r--r-- | patch/bar_wintitle.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/patch/bar_wintitle.c b/patch/bar_wintitle.c index 7f28fd3..0aded6c 100644 --- a/patch/bar_wintitle.c +++ b/patch/bar_wintitle.c @@ -7,11 +7,6 @@ width_wintitle(Bar *bar, BarWidthArg *a) int draw_wintitle(Bar *bar, BarDrawArg *a) { - #if !BAR_ACTIVETAGINDICATORBAR_PATCH && !BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH - int boxs = drw->fonts->h / 9; - #endif // BAR_ACTIVETAGINDICATORBAR_PATCH | BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH - int boxw = drw->fonts->h / 6 + 2; - #if BAR_TITLE_LEFT_PAD_PATCH && BAR_TITLE_RIGHT_PAD_PATCH int x = a->x + lrpad / 2, w = a->w - lrpad; #elif BAR_TITLE_LEFT_PAD_PATCH @@ -52,13 +47,7 @@ draw_wintitle(Bar *bar, BarDrawArg *a) XSetErrorHandler(xerror); #endif // BAR_IGNORE_XFT_ERRORS_WHEN_DRAWING_TEXT_PATCH if (m->sel->isfloating) - #if BAR_ACTIVETAGINDICATORBAR_PATCH - drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw, m->sel->isfixed, 0); - #elif BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH - drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), boxw/2, 0); - #else - drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); - #endif // BAR_ACTIVETAGINDICATORBAR_PATCH + drawindicator(m, m->sel, 1, x, w, 0, 0, c->isfixed, floatindicatortype); return 1; } |
