mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Removing redundant lastbutton variable when both statuscmd and dwmblocks patches are enabled
This commit is contained in:
parent
a6c2fe5668
commit
1a4b3632d1
4
dwm.c
4
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
|
||||
|
@ -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…
Reference in New Issue
Block a user