X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxlockmore.h;h=3b390f039a16783bae5754b60c226538434865f3;hp=b6ae538db35c125d0dee66e717ee2a1bf941fbb6;hb=13dbc569cdc6e29019722c0ef9b932a925efbcad;hpb=3f9592851ce4ed76a9979bfdd6ec7dc5c457e183 diff --git a/hacks/xlockmore.h b/hacks/xlockmore.h index b6ae538d..3b390f03 100644 --- a/hacks/xlockmore.h +++ b/hacks/xlockmore.h @@ -1,5 +1,5 @@ /* xlockmore.h --- xscreensaver compatibility layer for xlockmore modules. - * xscreensaver, Copyright (c) 1997, 1998, 2001 Jamie Zawinski + * xscreensaver, Copyright (c) 1997-2002 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 @@ -136,6 +136,12 @@ extern void HACK_DRAW(ModeInfo *); # define HACK_RESHAPE 0 #endif +#ifdef HACK_HANDLE_EVENT + extern Bool HACK_HANDLE_EVENT(ModeInfo *, XEvent *e); +#else +# define HACK_HANDLE_EVENT 0 +#endif + /* Emit code for the entrypoint used by screenhack.c, and pass control down into xlockmore.c with the appropriate parameters. @@ -171,9 +177,16 @@ void screenhack (Display *dpy, Window window) False, #endif +#ifdef EVENT_MASK + EVENT_MASK, +#else + 0, +#endif + HACK_INIT, HACK_DRAW, HACK_RESHAPE, + HACK_HANDLE_EVENT, HACK_FREE); }