X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpenrose.c;h=603db735ebeadd22562326f5eb61354a1843f78e;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=6b07d8ca65e722e6e462b91681167cf83b890ac8;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869;p=xscreensaver diff --git a/hacks/penrose.c b/hacks/penrose.c index 6b07d8ca..603db735 100644 --- a/hacks/penrose.c +++ b/hacks/penrose.c @@ -87,9 +87,9 @@ If one of these are hit penrose will reinitialize. "*size: 40 \n" \ "*ncolors: 64 \n" \ "*fpsSolid: true \n" \ + "*ignoreRotation: True \n" \ # define refresh_penrose 0 -# define penrose_handle_event 0 # include "xlockmore.h" /* from the xscreensaver distribution */ #else /* !STANDALONE */ # include "xlock.h" /* from the xlockmore distribution */ @@ -1350,6 +1350,18 @@ release_penrose(ModeInfo * mi) } } +ENTRYPOINT Bool +penrose_handle_event (ModeInfo *mi, XEvent *event) +{ + if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event)) + { + init_penrose (mi); + return True; + } + return False; +} + + XSCREENSAVER_MODULE ("Penrose", penrose) #endif /* MODE_penrose */