mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-15 00:15:07 +00:00
24 lines
443 B
C
24 lines
443 B
C
#if STATUS2D_PATCH
|
|
static char rawstext[1024];
|
|
#else
|
|
static char rawstext[256];
|
|
#endif // STATUS2D_PATCH
|
|
#if !DWMBLOCKS_PATCH
|
|
static const char statusexport[] = "export BUTTON=-;";
|
|
static int statuscmdn;
|
|
static int lastbutton;
|
|
#endif // DWMBLOCKS_PATCH
|
|
|
|
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';
|
|
}
|