xstep = xnextStep;
ystep = ynextStep;
if (!mono_p)
- XSync (dpy, True);
+ XSync (dpy, False);
+ screenhack_handle_events (dpy);
}
if (mono_p)
/* in mono-mode, we do all the drawing at the end */
floyd_steinberg (dpy, window);
free (cell);
- XSync (dpy, True);
+ XSync (dpy, False);
}
rotate_colors (dpy, cmap, colors, ncolors,
cycle_direction);
if (cycle_delay) usleep(cycle_delay);
+ screenhack_handle_events (dpy);
}
}
else
- sleep (delay);
+ {
+ screenhack_handle_events (dpy);
+ sleep (delay);
+ }
}
}
}