X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmunch.c;h=b3cd73517d2c477dc638eb727a72a7bdd1586476;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hp=b686b95a245c8eab4bcb21c0db216fdb81d3a7af;hpb=c6b273ef7292ba10943694df1656b05203d7b62f;p=xscreensaver diff --git a/hacks/munch.c b/hacks/munch.c index b686b95a..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 [] = { - "*background: black", - "*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) {