projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.x.org/contrib/applications/xscreensaver-3.21.tar.gz
[xscreensaver]
/
hacks
/
noseguy.c
diff --git
a/hacks/noseguy.c
b/hacks/noseguy.c
index 0afb52c85d58d8ec531d5535540bd8c068eb181b..f0fa57f4a0247115e555ec6d300cd31ca24e7614 100644
(file)
--- a/
hacks/noseguy.c
+++ b/
hacks/noseguy.c
@@
-542,7
+542,9
@@
get_words (void)
sprintf (buf, "\"%s\" produced no output!", orig_program);
else if (!first_time &&
(strstr (buf, ": not found") ||
sprintf (buf, "\"%s\" produced no output!", orig_program);
else if (!first_time &&
(strstr (buf, ": not found") ||
- strstr (buf, ": Not found")))
+ strstr (buf, ": Not found") ||
+ strstr (buf, ": command not found") ||
+ strstr (buf, ": Command not found")))
switch (random () % 20)
{
case 1: strcat (buf, "( Get with the program, bub. )\n");
switch (random () % 20)
{
case 1: strcat (buf, "( Get with the program, bub. )\n");
@@
-713,7
+715,8
@@
screenhack (Display *d, Window w)
while (1)
{
next_fn();
while (1)
{
next_fn();
- XSync (dpy, True);
+ XSync (dpy, False);
+ screenhack_handle_events (dpy);
usleep (interval * 1000);
}
}
usleep (interval * 1000);
}
}