Reversed return value of updatestatus
This commit is contained in:
parent
c2ab94a4dc
commit
9c4a0a37d3
|
@ -114,10 +114,10 @@ getcmd(Block *block, int sigval)
|
||||||
void
|
void
|
||||||
setroot()
|
setroot()
|
||||||
{
|
{
|
||||||
if (updatestatus()) /* only set root if block outputs have changed */
|
if (updatestatus()) {
|
||||||
return;
|
|
||||||
XStoreName(dpy, DefaultRootWindow(dpy), statusstr);
|
XStoreName(dpy, DefaultRootWindow(dpy), statusstr);
|
||||||
XFlush(dpy);
|
XFlush(dpy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -223,7 +223,7 @@ updatestatus()
|
||||||
goto update2;
|
goto update2;
|
||||||
str += delimlength;
|
str += delimlength;
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
update0:
|
update0:
|
||||||
for (; current->pathu; current++) {
|
for (; current->pathu; current++) {
|
||||||
if (EMPTYCMDOUT(current)) {
|
if (EMPTYCMDOUT(current)) {
|
||||||
|
@ -247,7 +247,7 @@ update2:
|
||||||
/* remove delimiter at the end if not all blocks are empty */
|
/* remove delimiter at the end if not all blocks are empty */
|
||||||
if (str != statusstr)
|
if (str != statusstr)
|
||||||
*(str - delimlength) = '\0';
|
*(str - delimlength) = '\0';
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue