diff options
| author | bakkeby <[email protected]> | 2020-09-09 17:24:02 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-09 17:24:02 +0200 |
| commit | ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44 (patch) | |
| tree | ded58addbdbcf61bdf8eaa99d9c67f46d1f8921d /patch/bar_wintitle.c | |
| parent | b3e6e3531b79b4bcd6938f291f9658ca5bbc5dd2 (diff) | |
| download | dwm-flexipatch-ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44.tar.gz dwm-flexipatch-ff9811f73d1f3d47a6ab7a2a7e44308bf849fb44.zip | |
Just some minor changes adding bar border patch ref. #41
Diffstat (limited to 'patch/bar_wintitle.c')
| -rw-r--r-- | patch/bar_wintitle.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/patch/bar_wintitle.c b/patch/bar_wintitle.c index 7b2cd5a..ae2efce 100644 --- a/patch/bar_wintitle.c +++ b/patch/bar_wintitle.c @@ -1,11 +1,11 @@ int -width_wintitle(Bar *bar, BarWidthArg *a) +width_wintitle(Bar *bar, BarArg *a) { - return a->max_width; + return a->w; } int -draw_wintitle(Bar *bar, BarDrawArg *a) +draw_wintitle(Bar *bar, BarArg *a) { #if BAR_TITLE_LEFT_PAD_PATCH && BAR_TITLE_RIGHT_PAD_PATCH int x = a->x + lrpad / 2, w = a->w - lrpad; @@ -21,7 +21,7 @@ draw_wintitle(Bar *bar, BarDrawArg *a) if (!m->sel) { drw_setscheme(drw, scheme[SchemeTitleNorm]); - drw_rect(drw, x, 0, w, bh, 1, 1); + drw_rect(drw, x, a->y, w, a->h, 1, 1); return 0; } @@ -33,18 +33,18 @@ draw_wintitle(Bar *bar, BarDrawArg *a) if (TEXTW(m->sel->name) < w) pad = (w - TEXTW(m->sel->name) + lrpad) / 2; #endif // BAR_CENTEREDWINDOWNAME_PATCH - drw_text(drw, x, 0, w, bh, pad, m->sel->name, 0, False); + drw_text(drw, x, a->y, w, a->h, pad, m->sel->name, 0, False); #if BAR_IGNORE_XFT_ERRORS_WHEN_DRAWING_TEXT_PATCH XSync(dpy, False); XSetErrorHandler(xerror); #endif // BAR_IGNORE_XFT_ERRORS_WHEN_DRAWING_TEXT_PATCH if (m->sel->isfloating) - drawindicator(m, m->sel, 1, x, w, 0, 0, m->sel->isfixed, floatindicatortype); + drawindicator(m, m->sel, 1, x, a->y, w, a->h, 0, 0, m->sel->isfixed, floatindicatortype); return 1; } int -click_wintitle(Bar *bar, Arg *arg, BarClickArg *a) +click_wintitle(Bar *bar, Arg *arg, BarArg *a) { return ClkWinTitle; } |
