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_statuscmd.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_statuscmd.c')
| -rw-r--r-- | patch/bar_statuscmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/patch/bar_statuscmd.c b/patch/bar_statuscmd.c index f6166c3..14b4076 100644 --- a/patch/bar_statuscmd.c +++ b/patch/bar_statuscmd.c @@ -5,21 +5,21 @@ static int lastbutton; #endif // BAR_DWMBLOCKS_PATCH int -click_statuscmd(Monitor *m, Arg *arg, int rel_x, int rel_y, int rel_w, int rel_h) +click_statuscmd(Monitor *m, Arg *arg, BarClickArg *a) { - return click_statuscmd_text(m, arg, rel_x, rel_y, rawstext); + return click_statuscmd_text(m, arg, a->rel_x, rawstext); } #if BAR_EXTRABAR_PATCH int -click_statuscmd_eb(Monitor *m, Arg *arg, int rel_x, int rel_y, int rel_w, int rel_h) +click_statuscmd_eb(Monitor *m, Arg *arg, BarClickArg *a) { - return click_statuscmd_text(m, arg, rel_x, rel_y, rawestext); + return click_statuscmd_text(m, arg, a->rel_x, rawestext); } #endif // BAR_EXTRABAR_PATCH int -click_statuscmd_text(Monitor *m, Arg *arg, int rel_x, int rel_y, char *text) +click_statuscmd_text(Monitor *m, Arg *arg, int rel_x, char *text) { int i = -1; int x = 0; |
