From 1a4b3632d1ef9f0def8a0dbd5f7bc83b2653f16e Mon Sep 17 00:00:00 2001 From: bakkeby Date: Tue, 5 May 2020 19:59:21 +0200 Subject: [PATCH] Removing redundant lastbutton variable when both statuscmd and dwmblocks patches are enabled --- dwm.c | 4 ++-- patch/statuscmd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dwm.c b/dwm.c index 4731645..d483d9c 100644 --- a/dwm.c +++ b/dwm.c @@ -721,9 +721,9 @@ buttonpress(XEvent *e) Client *c; Monitor *m; XButtonPressedEvent *ev = &e->xbutton; - #if STATUSCMD_PATCH + #if STATUSCMD_PATCH && !DWMBLOCKS_PATCH lastbutton = ev->button; - #endif // STATUSCMD_PATCH + #endif // STATUSCMD_PATCH | DWMBLOCKS_PATCH #if AWESOMEBAR_PATCH || STATUSCMD_PATCH padding += lrpad - 2; #endif // AWESOMEBAR_PATCH | STATUSCMD_PATCH diff --git a/patch/statuscmd.c b/patch/statuscmd.c index 9a7c938..79db4b2 100644 --- a/patch/statuscmd.c +++ b/patch/statuscmd.c @@ -2,8 +2,8 @@ static char rawstext[256]; static const char statusexport[] = "export BUTTON=-;"; #if !DWMBLOCKS_PATCH static int statuscmdn; -#endif // DWMBLOCKS_PATCH static int lastbutton; +#endif // DWMBLOCKS_PATCH void copyvalidchars(char *text, char *rawtext)