diff options
| author | bakkeby <[email protected]> | 2020-07-15 17:15:35 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-07-15 17:15:35 +0200 |
| commit | ad09397ad965d6104134bce7df5ad13ecfb97014 (patch) | |
| tree | c14632ce59ef3b35d8bdea9357d5128263a3e8e2 /patch | |
| parent | 06c4122e07155ef604bd767182247ee6877b2c94 (diff) | |
| download | dwm-flexipatch-ad09397ad965d6104134bce7df5ad13ecfb97014.tar.gz dwm-flexipatch-ad09397ad965d6104134bce7df5ad13ecfb97014.zip | |
status2d: hide click_status2d if dwmblocks is used
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/bar_status2d.c | 2 | ||||
| -rw-r--r-- | patch/bar_status2d.h | 2 |
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 |
