X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fboxfit.c;h=c78d11a04439ca9da8e176054abf85cee8641c3c;hp=3c811ca00b75b3b11c1b9216a476d1e1e94e0a86;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/boxfit.c b/hacks/boxfit.c index 3c811ca0..c78d11a0 100644 --- a/hacks/boxfit.c +++ b/hacks/boxfit.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2005-2013 Jamie Zawinski +/* xscreensaver, Copyright (c) 2005-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 @@ -503,10 +503,11 @@ static Bool boxfit_event (Display *dpy, Window window, void *closure, XEvent *event) { state *st = (state *) closure; - if (event->xany.type == ButtonPress) { - st->growing_p = !st->growing_p; - return True; - } + if (screenhack_event_helper (dpy, window, event)) + { + st->growing_p = !st->growing_p; + return True; + } return False; } @@ -533,6 +534,7 @@ static const char *boxfit_defaults [] = { "*chooseRandomImages: True", /* HAVE_COCOA */ #ifdef USE_IPHONE "*ignoreRotation: True", + "*rotateImages: True", #endif 0 };