summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_statuscmd.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-04-14 11:23:18 +0200
committerbakkeby <[email protected]>2021-04-14 11:23:18 +0200
commit6e80cb5f366b297c124da5139abf3b2199887e04 (patch)
treec2be8a1ac9c0c095058aaa0185ffc4202b1263e6 /patch/bar_statuscmd.c
parent7efb64d68539666e8da8f7311e706954e6018fdb (diff)
downloaddwm-flexipatch-6e80cb5f366b297c124da5139abf3b2199887e04.tar.gz
dwm-flexipatch-6e80cb5f366b297c124da5139abf3b2199887e04.zip
Upgrading statuscmd patch.
The original statuscmd patch has been renamed to statuscmd-nosignal to separate the logic from the dwmblocks integration that involves signals. I assume as the latter has become more popular it has replaced the statuscmd in name.
Diffstat (limited to 'patch/bar_statuscmd.c')
-rw-r--r--patch/bar_statuscmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/bar_statuscmd.c b/patch/bar_statuscmd.c
index ae1e2bb..c0ea860 100644
--- a/patch/bar_statuscmd.c
+++ b/patch/bar_statuscmd.c
@@ -1,7 +1,7 @@
#if !BAR_DWMBLOCKS_PATCH
static const char statusexport[] = "export BUTTON=-;";
static int statuscmdn;
-static int lastbutton;
+static char lastbutton[] = "-";
#endif // BAR_DWMBLOCKS_PATCH
int
@@ -49,7 +49,7 @@ click_statuscmd_text(Arg *arg, int rel_x, char *text)
if (x >= rel_x)
break;
if (ch <= LENGTH(statuscmds))
- statuscmdn = ch - 1;
+ statuscmdn = ch;
#endif // BAR_DWMBLOCKS_PATCH
}
}