X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmunch.c;h=b3cd73517d2c477dc638eb727a72a7bdd1586476;hb=3d9140a05b5272fed0883a0af0a71e30ef44d47f;hp=d1f2ea6b68a33da6b22204afb3a5d81f8a2fdd30;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/munch.c b/hacks/munch.c index d1f2ea6b..b3cd7351 100644 --- a/hacks/munch.c +++ b/hacks/munch.c @@ -9,7 +9,7 @@ * * Some code stolen from / This is meant to work with * xscreensaver, Copyright (c) 1992, 1995, 1996 - * 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 @@ -44,8 +44,8 @@ char *progclass = "Munch"; char *defaults [] = { - "Munch.background: black", /* to placate SGI */ - "Munch.foreground: white", + ".background: black", + ".foreground: white", "*delay: 5000", "*hold: 100000", "*clear: 50", @@ -133,6 +133,7 @@ static void munchOnce (Display* dpy, Window w, same time (one for each value of x, surprisingly enough) */ XSync(dpy, False); + screenhack_handle_events (dpy); if (delay) usleep(delay); } } @@ -246,6 +247,7 @@ screenhack (dpy, w) Display *dpy; Window w; (randflags & GRAV) ); + screenhack_handle_events (dpy); if (hold) usleep(hold); if (clear && ++n >= clear) {