summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patch/bar_status2d.c2
-rw-r--r--patch/bar_status2d.h2
2 files changed, 4 insertions, 0 deletions
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