projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.x.org/contrib/applications/xscreensaver-3.09.tar.gz
[xscreensaver]
/
hacks
/
screenhack.c
diff --git
a/hacks/screenhack.c
b/hacks/screenhack.c
index 0e1c678e1039dc5451afec54ab5eca1ec7d14140..7c14734664f522227911b8c2f8d06ca788286f7d 100644
(file)
--- a/
hacks/screenhack.c
+++ b/
hacks/screenhack.c
@@
-38,6
+38,7
@@
#include <X11/Shell.h>
#include <X11/StringDefs.h>
#include <X11/Xutil.h>
#include <X11/Shell.h>
#include <X11/StringDefs.h>
#include <X11/Xutil.h>
+#include <X11/keysym.h>
#ifdef __sgi
# include <X11/SGIScheme.h> /* for SgiUseSchemes() */
#ifdef __sgi
# include <X11/SGIScheme.h> /* for SgiUseSchemes() */
@@
-188,7
+189,10
@@
screenhack_handle_event (Display *dpy, XEvent *event)
c == 3 || /* ^C */
c == 27) /* ESC */
exit (0);
c == 3 || /* ^C */
c == 27) /* ESC */
exit (0);
+ else if (! (keysym >= XK_Shift_L && keysym <= XK_Hyper_R))
+ XBell (dpy, 0); /* beep for non-chord keys */
}
}
+ break;
case ButtonPress:
XBell (dpy, 0);
break;
case ButtonPress:
XBell (dpy, 0);
break;