diff options
| author | bakkeby <[email protected]> | 2020-05-05 19:59:21 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-05-05 19:59:21 +0200 |
| commit | 1a4b3632d1ef9f0def8a0dbd5f7bc83b2653f16e (patch) | |
| tree | b7c23aa574b0b016079b661aa5a421aa9037eee2 | |
| parent | a6c2fe5668ca780f865b6cfac72ea94e1c93d881 (diff) | |
| download | dwm-flexipatch-1a4b3632d1ef9f0def8a0dbd5f7bc83b2653f16e.tar.gz dwm-flexipatch-1a4b3632d1ef9f0def8a0dbd5f7bc83b2653f16e.zip | |
Removing redundant lastbutton variable when both statuscmd and dwmblocks patches are enabled
| -rw-r--r-- | dwm.c | 4 | ||||
| -rw-r--r-- | patch/statuscmd.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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) |
