From ad09397ad965d6104134bce7df5ad13ecfb97014 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 15 Jul 2020 17:15:35 +0200 Subject: [PATCH] status2d: hide click_status2d if dwmblocks is used --- patch/bar_status2d.c | 2 ++ patch/bar_status2d.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/patch/bar_status2d.c b/patch/bar_status2d.c index 61ebd69..0adaadd 100644 --- a/patch/bar_status2d.c +++ b/patch/bar_status2d.c @@ -10,11 +10,13 @@ draw_status2d(Monitor *m, BarDrawArg *a) return drawstatusbar(m, a->x, a->w, rawstext); } +#if !BAR_DWMBLOCKS_PATCH int click_status2d(Monitor *m, Arg *arg, BarClickArg *a) { return ClkStatusText; } +#endif // BAR_DWMBLOCKS_PATCH int drawstatusbar(Monitor *m, int x, int ow, char* stext) diff --git a/patch/bar_status2d.h b/patch/bar_status2d.h index 621fb7f..fa9fbeb 100644 --- a/patch/bar_status2d.h +++ b/patch/bar_status2d.h @@ -1,5 +1,7 @@ static int width_status2d(Monitor *m, BarWidthArg *a); static int draw_status2d(Monitor *m, BarDrawArg *a); +#if !BAR_DWMBLOCKS_PATCH static int click_status2d(Monitor *m, Arg *arg, BarClickArg *a); +#endif // BAR_DWMBLOCKS_PATCH static int drawstatusbar(Monitor *m, int x, int w, char* text); static int status2dtextlength(char* stext); \ No newline at end of file