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

pull/32/head
bakkeby 4 years ago
parent a6c2fe5668
commit 1a4b3632d1

@ -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

@ -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)

Loading…
Cancel
Save