X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fcwaves.c;h=2caea50da34a42960548dbedf6ee632ae61b5f11;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=94c235574b1daef78240f2e3b5092624937ab30b;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver diff --git a/hacks/cwaves.c b/hacks/cwaves.c index 94c23557..2caea50d 100644 --- a/hacks/cwaves.c +++ b/hacks/cwaves.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2007-2013 Jamie Zawinski +/* xscreensaver, Copyright (c) 2007-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,7 +168,7 @@ static Bool cwaves_event (Display *dpy, Window window, void *closure, XEvent *event) { state *st = (state *) closure; - if (event->type == ButtonPress) + if (screenhack_event_helper (dpy, window, event)) { make_smooth_colormap (st->xgwa.screen, st->xgwa.visual, st->xgwa.colormap, @@ -193,7 +193,7 @@ static const char *cwaves_defaults [] = { "*scale: 2", "*debug: False", "*delay: 20000", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0