diff options
| author | bakkeby <[email protected]> | 2020-07-15 14:10:47 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-07-15 14:10:47 +0200 |
| commit | aa70728d0049f771820f17cfca4488768cf57cef (patch) | |
| tree | 6c04dd37b98a70b6f9aedf15e9ece315f7d89933 /patch/bar_statusbutton.c | |
| parent | f2da4d20d9a79070863972423ca964cf65342ba7 (diff) | |
| download | dwm-flexipatch-aa70728d0049f771820f17cfca4488768cf57cef.tar.gz dwm-flexipatch-aa70728d0049f771820f17cfca4488768cf57cef.zip | |
Adding BarWidthArg, BarDrawArg, BarClickArg to keep the method signatures static
Diffstat (limited to 'patch/bar_statusbutton.c')
| -rw-r--r-- | patch/bar_statusbutton.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/patch/bar_statusbutton.c b/patch/bar_statusbutton.c index 130ef62..5f60b76 100644 --- a/patch/bar_statusbutton.c +++ b/patch/bar_statusbutton.c @@ -1,21 +1,21 @@ int -width_stbutton(Monitor *m, int max_width) +width_stbutton(Monitor *m, BarWidthArg *a) { return TEXTW(buttonbar); } int -draw_stbutton(Monitor *m, int x, int w) +draw_stbutton(Monitor *m, BarDrawArg *a) { #if BAR_PANGO_PATCH - return drw_text(drw, x, 0, w, bh, lrpad / 2, buttonbar, 0, False); + return drw_text(drw, a->x, 0, a->w, bh, lrpad / 2, buttonbar, 0, False); #else - return drw_text(drw, x, 0, w, bh, lrpad / 2, buttonbar, 0); + return drw_text(drw, a->x, 0, a->w, bh, lrpad / 2, buttonbar, 0); #endif // BAR_PANGO_PATCH } int -click_stbutton(Monitor *m, Arg *arg, int rel_x, int rel_y, int rel_w, int rel_h) +click_stbutton(Monitor *m, Arg *arg, BarClickArg *a) { return ClkButton; } |
