Renamed statusstr to statustext
This commit is contained in:
parent
ef29c7ddd5
commit
01f1481f54
|
@ -35,7 +35,7 @@ static int updatestatus();
|
|||
static void writepid();
|
||||
|
||||
static int statuscontinue = 1;
|
||||
static char statusstr[STTLENGTH];
|
||||
static char statustext[STTLENGTH];
|
||||
static size_t delimlength;
|
||||
static Display *dpy;
|
||||
static sigset_t blocksigmask;
|
||||
|
@ -114,7 +114,7 @@ void
|
|||
setroot()
|
||||
{
|
||||
if (updatestatus()) {
|
||||
XStoreName(dpy, DefaultRootWindow(dpy), statusstr);
|
||||
XStoreName(dpy, DefaultRootWindow(dpy), statustext);
|
||||
XSync(dpy, False);
|
||||
}
|
||||
}
|
||||
|
@ -203,11 +203,11 @@ termhandler(int signum)
|
|||
statuscontinue = 0;
|
||||
}
|
||||
|
||||
/* returns whether block outputs have changed and updates statusstr if they have */
|
||||
/* returns whether block outputs have changed and updates statustext if they have */
|
||||
int
|
||||
updatestatus()
|
||||
{
|
||||
char *s = statusstr;
|
||||
char *s = statustext;
|
||||
char *c, *p; /* for cmdoutcur and cmdoutprv */
|
||||
const char *d; /* for delimiter */
|
||||
Block *block = blocks;
|
||||
|
|
Loading…
Reference in a new issue