X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fcrystal.c;h=8b077c88fa29725db65cb11d5c23280f184f4bc3;hp=3acd7caee386f3e211f6e9803ffdf16365d66d0e;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/crystal.c b/hacks/crystal.c index 3acd7cae..8b077c88 100644 --- a/hacks/crystal.c +++ b/hacks/crystal.c @@ -77,7 +77,6 @@ static const char sccsid[] = "@(#)crystal.c 4.12 98/09/10 xlockmore"; "*fpsSolid: True \n" \ "*ignoreRotation: True \n" \ -# define crystal_handle_event 0 # include "xlockmore.h" /* in xscreensaver distribution */ #else /* STANDALONE */ # include "xlock.h" /* in xlockmore distribution */ @@ -1286,4 +1285,15 @@ reshape_crystal(ModeInfo * mi, int width, int height) init_crystal(mi); } +ENTRYPOINT Bool +crystal_handle_event (ModeInfo *mi, XEvent *event) +{ + if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event)) + { + reshape_crystal (mi, MI_WIDTH(mi), MI_HEIGHT(mi)); + return True; + } + return False; +} + XSCREENSAVER_MODULE ("Crystal", crystal)