X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fscreenhack.c;h=7c14734664f522227911b8c2f8d06ca788286f7d;hp=0e1c678e1039dc5451afec54ab5eca1ec7d14140;hb=a719ec12b8b2563112366a8ac3196816fd64d2c7;hpb=59ac4e9a0de290e4275a7bbb890ad16abd09d68f diff --git a/hacks/screenhack.c b/hacks/screenhack.c index 0e1c678e..7c147346 100644 --- a/hacks/screenhack.c +++ b/hacks/screenhack.c @@ -38,6 +38,7 @@ #include #include #include +#include #ifdef __sgi # include /* for SgiUseSchemes() */ @@ -188,7 +189,10 @@ screenhack_handle_event (Display *dpy, XEvent *event) 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;