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_fancybar.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_fancybar.c')
| -rw-r--r-- | patch/bar_fancybar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/patch/bar_fancybar.c b/patch/bar_fancybar.c index b6f5363..810c73e 100644 --- a/patch/bar_fancybar.c +++ b/patch/bar_fancybar.c @@ -1,13 +1,13 @@ int -width_fancybar(Monitor *m, int max_width) +width_fancybar(Monitor *m, BarWidthArg *a) { - return max_width; + return a->max_width; } int -draw_fancybar(Monitor *m, int x, int w) +draw_fancybar(Monitor *m, BarDrawArg *a) { - int ftw, mw, ew = 0, n = 0; + int ftw, mw, ew = 0, n = 0, x = a->x, w = a->w; unsigned int i; Client *c; #if !BAR_HIDEVACANTTAGS_PATCH @@ -89,7 +89,7 @@ draw_fancybar(Monitor *m, int x, int w) } int -click_fancybar(Monitor *m, Arg *arg, int rel_x, int rel_y, int rel_w, int rel_h) +click_fancybar(Monitor *m, Arg *arg, BarClickArg *a) { return ClkWinTitle; } |
