X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fcoral.c;h=0f7f255a544a3a88e968f5a6ec0edfdd4e7b1398;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=6cc50daaa322e0677670b7c77c66387da6f7c9fd;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver diff --git a/hacks/coral.c b/hacks/coral.c index 6cc50daa..0f7f255a 100644 --- a/hacks/coral.c +++ b/hacks/coral.c @@ -269,6 +269,12 @@ coral_reshape (Display *dpy, Window window, void *closure, static Bool coral_event (Display *dpy, Window window, void *closure, XEvent *event) { + struct state *st = (struct state *) closure; + if (screenhack_event_helper (dpy, window, event)) + { + st->reset = 1; + return True; + } return False; } @@ -290,7 +296,7 @@ static const char *coral_defaults[] = { "*seeds: 20", /* too many for 640x480, too few for 1280x1024 */ "*delay: 5", "*delay2: 20000", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0