X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fattraction.c;h=1a84833b80fb89a86becee326877b31260961108;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hp=42930046acc350997deab5cdca33de6ef5e0876e;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/attraction.c b/hacks/attraction.c index 42930046..1a84833b 100644 --- a/hacks/attraction.c +++ b/hacks/attraction.c @@ -1,5 +1,5 @@ -/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998 + * 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 @@ -605,15 +605,15 @@ run_balls (Display *dpy, Window window) abort (); } - XSync (dpy, True); + XSync (dpy, False); } char *progclass = "Attraction"; char *defaults [] = { - "Attraction.background: black", /* to placate SGI */ - "Attraction.foreground: white", + ".background: black", + ".foreground: white", "*mode: balls", "*points: 0", "*size: 0", @@ -661,6 +661,7 @@ screenhack (Display *dpy, Window window) while (1) { run_balls (dpy, window); + screenhack_handle_events (dpy); if (delay) usleep (delay); } }