X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fnoseguy.c;h=fa3203cdeff135a263514bbea2ae71166cb19c43;hb=3c58fb6311db49c46f1670922933b27c6ea0c065;hp=606e9fef37a26c796bdad0026e19dd2945da7b2a;hpb=c6b273ef7292ba10943694df1656b05203d7b62f;p=xscreensaver diff --git a/hacks/noseguy.c b/hacks/noseguy.c index 606e9fef..fa3203cd 100644 --- a/hacks/noseguy.c +++ b/hacks/noseguy.c @@ -1,5 +1,5 @@ /* xscreensaver, Copyright (c) 1992, 1996, 1997, 1998 - * Jamie Zawinski + * Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -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"); @@ -610,8 +613,8 @@ get_words (void) char *progclass = "Noseguy"; char *defaults [] = { - "*background: black", - "*foreground: gray80", + ".background: black", + ".foreground: gray80", #ifndef VMS "*mode: program", #else @@ -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); } }