2020-05-26 20:53:53 +02:00
|
|
|
#if STATUS2D_PATCH
|
|
|
|
static char rawstext[1024];
|
|
|
|
#else
|
2020-04-13 14:59:58 +02:00
|
|
|
static char rawstext[256];
|
2020-05-26 20:53:53 +02:00
|
|
|
#endif // STATUS2D_PATCH
|
2020-05-05 19:50:28 +02:00
|
|
|
#if !DWMBLOCKS_PATCH
|
2020-05-07 21:44:17 +02:00
|
|
|
static const char statusexport[] = "export BUTTON=-;";
|
2020-04-13 14:59:58 +02:00
|
|
|
static int statuscmdn;
|
|
|
|
static int lastbutton;
|
2020-05-05 19:59:21 +02:00
|
|
|
#endif // DWMBLOCKS_PATCH
|
2020-04-13 14:59:58 +02:00
|
|
|
|
|
|
|
void
|
|
|
|
copyvalidchars(char *text, char *rawtext)
|
|
|
|
{
|
|
|
|
int i = -1, j = 0;
|
|
|
|
|
|
|
|
while (rawtext[++i]) {
|
|
|
|
if ((unsigned char)rawtext[i] >= ' ') {
|
|
|
|
text[j++] = rawtext[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
text[j] = '\0';
|
2020-05-05 19:50:28 +02:00
|
|
|
}
|