X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Frorschach.c;h=430fa9dfb3373464428651dd90fd56ddef1da39e;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hp=627f1eb636b112baa5e444ae4c500921d4eae621;hpb=6bb727f03bff0389fbb1349d7df4c9d8d7532959;p=xscreensaver diff --git a/hacks/rorschach.c b/hacks/rorschach.c index 627f1eb6..430fa9df 100644 --- a/hacks/rorschach.c +++ b/hacks/rorschach.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1996 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992, 1996, 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 @@ -92,7 +92,8 @@ hurm (Display *dpy, Window window) j++; } XDrawPoints (dpy, window, draw_gc, points, j, CoordModeOrigin); - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); } sleep ( sleep_time ); @@ -100,7 +101,8 @@ hurm (Display *dpy, Window window) XClearWindow (dpy, window); if (got_color) XFreeColors (dpy, cmap, &color.pixel, 1, 0); - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); sleep (1); } @@ -108,8 +110,8 @@ hurm (Display *dpy, Window window) char *progclass = "Rorschach"; char *defaults [] = { - "Rorschach.background: black", /* to placate SGI */ - "Rorschach.foreground: white", + ".background: black", + ".foreground: white", "*xsymmetry: true", "*ysymmetry: false", "*iterations: 4000",