X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fnoseguy.c;h=f0fa57f4a0247115e555ec6d300cd31ca24e7614;hb=82c5080773aae5e72ec155327c075775e023d2ee;hp=f23e8b6f47f10f36e91b078f6d82c9ec18e706b2;hpb=0bd2eabab3e404c6769fe8f59b639275e960c415;p=xscreensaver diff --git a/hacks/noseguy.c b/hacks/noseguy.c index f23e8b6f..f0fa57f4 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 @@ -542,7 +542,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"); @@ -713,7 +715,8 @@ screenhack (Display *d, Window w) while (1) { next_fn(); - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); usleep (interval * 1000); } }