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.
This commit is contained in:
bakkeby
2021-04-14 11:23:18 +02:00
parent 7efb64d685
commit 6e80cb5f36
4 changed files with 34 additions and 27 deletions

View File

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