X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fcwaves.c;h=f14a498603bea1513ed75dcc9c247ac8924b11a9;hp=94c235574b1daef78240f2e3b5092624937ab30b;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/cwaves.c b/hacks/cwaves.c index 94c23557..f14a4986 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,