X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fstarfish.c;h=070c034109a1d3ec901c18ae0fb2a71c9555a3f2;hp=e368164d07b273609e232fb42c6c90648cc898bc;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hpb=8e0f39b4a12b9a908af2b3b175ebe87c14b4a6ab diff --git a/hacks/starfish.c b/hacks/starfish.c index e368164d..070c0341 100644 --- a/hacks/starfish.c +++ b/hacks/starfish.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 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 @@ -470,8 +470,9 @@ screenhack (Display *dpy, Window window) while (1) { run_starfish (dpy, window, s); - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); if (cycle_p && cycle_delay) { if (cycle_delay <= delay) @@ -518,6 +519,7 @@ screenhack (Display *dpy, Window window) while (i < delay2) { rotate_colors (dpy, cmap, colors, ncolors, direction); + screenhack_handle_events (dpy); usleep(cycle_delay); i += cycle_delay; }