X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fresources.h;h=cbfc8d16a8bdf17c13a845cea47cf8413a8d5e18;hp=231fe23090441e23d8f9c2355d62e6aadc7258a6;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/utils/resources.h b/utils/resources.h index 231fe230..cbfc8d16 100644 --- a/utils/resources.h +++ b/utils/resources.h @@ -1,5 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1997, 2001, 2003, 2006 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-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 @@ -30,4 +29,13 @@ xscreensaver_logo (Screen *screen, Visual *visual, Pixmap *mask_ret, Bool big_p); + +/* A utility function for event-handler functions: + Returns True if the event is a simple click, Space, Tab, etc. + Returns False otherwise. + The idea here is that most hacks interpret to clicks or basic + keypresses as "change it up". + */ +extern Bool screenhack_event_helper (Display *, Window, XEvent *); + #endif /* __XSCREENSAVER_RESOURCES_H__ */