X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Frorschach.c;h=6b2d7a3b88d49b7f0f85762489994a2d9cd6c1bd;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=0d352696b71c1e51b5b5c0aa0370021c83e2c455;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver diff --git a/hacks/rorschach.c b/hacks/rorschach.c index 0d352696..6b2d7a3b 100644 --- a/hacks/rorschach.c +++ b/hacks/rorschach.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2008 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2014 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 @@ -168,6 +168,12 @@ rorschach_draw (Display *dpy, Window window, void *closure) static Bool rorschach_event (Display *dpy, Window window, void *closure, XEvent *event) { + struct state *st = (struct state *) closure; + if (screenhack_event_helper (dpy, window, event)) + { + st->remaining_iterations = 0; + return True; + } return False; } @@ -188,7 +194,7 @@ static const char *rorschach_defaults [] = { "*iterations: 4000", "*offset: 7", "*delay: 5", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0