summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_statusbutton.c
blob: 5f60b76cc29912e503443129f3187c2a3eb49c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int
width_stbutton(Monitor *m, BarWidthArg *a)
{
	return TEXTW(buttonbar);
}

int
draw_stbutton(Monitor *m, BarDrawArg *a)
{
	#if BAR_PANGO_PATCH
	return drw_text(drw, a->x, 0, a->w, bh, lrpad / 2, buttonbar, 0, False);
	#else
	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, BarClickArg *a)
{
	return ClkButton;
}