X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fnoseguy.c;h=0bf10d82899aee773bee6174e58bc8f9910b1bbf;hb=8eb2873d7054e705c4e83f22d18c40946a9e2529;hp=0afb52c85d58d8ec531d5535540bd8c068eb181b;hpb=ce3185de9d9705e259f2b60dd4b5509007fa17d4;p=xscreensaver diff --git a/hacks/noseguy.c b/hacks/noseguy.c index 0afb52c8..0bf10d82 100644 --- a/hacks/noseguy.c +++ b/hacks/noseguy.c @@ -11,7 +11,8 @@ */ /* Make a little guy with a big nose and a hat wanter around the screen, - spewing out messages. Derived from xnlock by Dan Heller . + spewing out messages. Derived from xnlock by + Dan Heller . */ #include "screenhack.h" @@ -542,7 +543,9 @@ get_words (void) 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"); @@ -617,7 +620,7 @@ char *defaults [] = { #else "*mode: string", #endif - "*program: " ZIPPY_PROGRAM, + "*program: " FORTUNE_PROGRAM, "noseguy.font: -*-new century schoolbook-*-r-*-*-*-180-*-*-*-*-*-*", 0 }; @@ -713,7 +716,8 @@ screenhack (Display *d, Window w) while (1) { next_fn(); - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); usleep (interval * 1000); } }