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_floating.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_floating.c')
| -rw-r--r-- | patch/bar_wintitle_floating.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/patch/bar_wintitle_floating.c b/patch/bar_wintitle_floating.c index e4aea1d..001486b 100644 --- a/patch/bar_wintitle_floating.c +++ b/patch/bar_wintitle_floating.c @@ -1,27 +1,28 @@ int -width_wintitle_floating(Bar *bar, BarWidthArg *a) +width_wintitle_floating(Bar *bar, BarArg *a) { - return a->max_width; + return a->w; } int -draw_wintitle_floating(Bar *bar, BarDrawArg *a) +draw_wintitle_floating(Bar *bar, BarArg *a) { - drw_rect(drw, a->x, 0, a->w, bh, 1, 1); - return calc_wintitle_floating(bar->mon, a->x, a->w, -1, flextitledraw, NULL);; + drw_rect(drw, a->x, a->y, a->w, a->h, 1, 1); + return calc_wintitle_floating(bar->mon, a->x, a->w, -1, flextitledraw, NULL, a); } int -click_wintitle_floating(Bar *bar, Arg *arg, BarClickArg *a) +click_wintitle_floating(Bar *bar, Arg *arg, BarArg *a) { - calc_wintitle_floating(bar->mon, 0, a->rel_w, a->rel_x, flextitleclick, arg); + calc_wintitle_floating(bar->mon, 0, a->w, a->x, flextitleclick, arg, a); return ClkWinTitle; } int calc_wintitle_floating( Monitor *m, int offx, int tabw, int passx, - void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg), Arg *arg + void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), + Arg *arg, BarArg *barg ) { Client *c; int clientsnfloating = 0, w, r; @@ -39,6 +40,6 @@ calc_wintitle_floating( w = tabw / clientsnfloating; r = tabw % clientsnfloating; - c = flextitledrawarea(m, m->clients, offx, r, w, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg); + c = flextitledrawarea(m, m->clients, offx, r, w, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg, barg); return 1; }
\ No newline at end of file |
