summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dwm.c4
-rw-r--r--patch/statuscmd.c2
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)