X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fstarfish.c;h=c0cf075717ad3609b2f676c3b8dc403550090e25;hb=a94197e76a5dea5cb60542840809d6c20d0abbf3;hp=89638197312eb1749c5fcc9ae879de4022263267;hpb=0bd2eabab3e404c6769fe8f59b639275e960c415;p=xscreensaver diff --git a/hacks/starfish.c b/hacks/starfish.c index 89638197..c0cf0757 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 @@ -10,6 +10,7 @@ */ #include +#include #include /* for gettimeofday() */ #include "screenhack.h" #include "spline.h" @@ -470,8 +471,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 +520,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; }