X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fhopalong.c;h=e0ecffb89cb64b770b0fb2f97c802826aec6cfda;hp=10e2656d937b940e6603d636639a026362e7dd99;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/hopalong.c b/hacks/hopalong.c index 10e2656d..e0ecffb8 100644 --- a/hacks/hopalong.c +++ b/hacks/hopalong.c @@ -61,7 +61,6 @@ static const char sccsid[] = "@(#)hop.c 5.00 2000/11/01 xlockmore"; # define SMOOTH_COLORS # define reshape_hop 0 -# define hop_handle_event 0 # include "xlockmore.h" /* in xscreensaver distribution */ # include "erase.h" #else /* STANDALONE */ @@ -575,6 +574,20 @@ refresh_hop(ModeInfo * mi) MI_CLEARWINDOW(mi); } +ENTRYPOINT Bool +hop_handle_event (ModeInfo *mi, XEvent *event) +{ + if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event)) + { + MI_CLEARWINDOW(mi); + init_hop (mi); + return True; + } + return False; +} + + + XSCREENSAVER_MODULE_2 ("Hopalong", hopalong, hop) #endif /* MODE_hop */