From a969db091cab16a448f82782e85b3dd19c81627a Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sat, 17 Nov 2007 22:34:47 +0100 Subject: XKB: Don't ring the bell when we don't have a BellProc (bug #13246) --- xkb/xkbEvents.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xkb') diff --git a/xkb/xkbEvents.c b/xkb/xkbEvents.c index e11b60918..bf3e828f3 100644 --- a/xkb/xkbEvents.c +++ b/xkb/xkbEvents.c @@ -405,7 +405,8 @@ XID winID = 0; if ((force||(xkbi->desc->ctrls->enabled_ctrls&XkbAudibleBellMask))&& (!eventOnly)) { - (*kbd->kbdfeed->BellProc)(percent,kbd,(pointer)pCtrl,class); + if (kbd->kbdfeed->BellProc) + (*kbd->kbdfeed->BellProc)(percent,kbd,(pointer)pCtrl,class); } interest = kbd->xkb_interest; if ((!interest)||(force)) -- cgit v1.2.3