summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_systray.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-07-15 14:10:47 +0200
committerbakkeby <[email protected]>2020-07-15 14:10:47 +0200
commitaa70728d0049f771820f17cfca4488768cf57cef (patch)
tree6c04dd37b98a70b6f9aedf15e9ece315f7d89933 /patch/bar_systray.c
parentf2da4d20d9a79070863972423ca964cf65342ba7 (diff)
downloaddwm-flexipatch-aa70728d0049f771820f17cfca4488768cf57cef.tar.gz
dwm-flexipatch-aa70728d0049f771820f17cfca4488768cf57cef.zip
Adding BarWidthArg, BarDrawArg, BarClickArg to keep the method signatures static
Diffstat (limited to 'patch/bar_systray.c')
-rw-r--r--patch/bar_systray.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/patch/bar_systray.c b/patch/bar_systray.c
index 9938543..e9df765 100644
--- a/patch/bar_systray.c
+++ b/patch/bar_systray.c
@@ -5,7 +5,7 @@ static int systraybarrule = -1;
static int systrayxpos = 0;
int
-width_systray(Monitor *m, int max_width)
+width_systray(Monitor *m, BarWidthArg *a)
{
unsigned int w = 0;
Client *i;
@@ -17,15 +17,15 @@ width_systray(Monitor *m, int max_width)
}
int
-draw_systray(Monitor *m, int x_pos, int w)
+draw_systray(Monitor *m, BarDrawArg *a)
{
- systrayxpos = x_pos;
+ systrayxpos = a->x;
updatesystray();
- return systrayxpos + w;
+ return systrayxpos + a->w;
}
int
-click_systray(Monitor *m, Arg *arg, int rel_x, int rel_y, int rel_w, int rel_h)
+click_systray(Monitor *m, Arg *arg, BarClickArg *a)
{
return -1;
}