Removing redundant lastbutton variable when both statuscmd and dwmblocks patches are enabled

This commit is contained in:
bakkeby 2020-05-05 19:59:21 +02:00
parent a6c2fe5668
commit 1a4b3632d1
2 changed files with 3 additions and 3 deletions

4
dwm.c
View File

@ -721,9 +721,9 @@ buttonpress(XEvent *e)
Client *c; Client *c;
Monitor *m; Monitor *m;
XButtonPressedEvent *ev = &e->xbutton; XButtonPressedEvent *ev = &e->xbutton;
#if STATUSCMD_PATCH #if STATUSCMD_PATCH && !DWMBLOCKS_PATCH
lastbutton = ev->button; lastbutton = ev->button;
#endif // STATUSCMD_PATCH #endif // STATUSCMD_PATCH | DWMBLOCKS_PATCH
#if AWESOMEBAR_PATCH || STATUSCMD_PATCH #if AWESOMEBAR_PATCH || STATUSCMD_PATCH
padding += lrpad - 2; padding += lrpad - 2;
#endif // AWESOMEBAR_PATCH | STATUSCMD_PATCH #endif // AWESOMEBAR_PATCH | STATUSCMD_PATCH

View File

@ -2,8 +2,8 @@ static char rawstext[256];
static const char statusexport[] = "export BUTTON=-;"; static const char statusexport[] = "export BUTTON=-;";
#if !DWMBLOCKS_PATCH #if !DWMBLOCKS_PATCH
static int statuscmdn; static int statuscmdn;
#endif // DWMBLOCKS_PATCH
static int lastbutton; static int lastbutton;
#endif // DWMBLOCKS_PATCH
void void
copyvalidchars(char *text, char *rawtext) copyvalidchars(char *text, char *rawtext)