diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-17 22:34:47 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-17 22:51:39 +0100 |
commit | a969db091cab16a448f82782e85b3dd19c81627a (patch) | |
tree | 8d61fa3fbf2b776501be226b2a0c9a9486a1c150 /xkb | |
parent | c89b543198d5ec56ff025bdd6bb7229523478e58 (diff) |
XKB: Don't ring the bell when we don't have a BellProc (bug #13246)
Diffstat (limited to 'xkb')
-rw-r--r-- | xkb/xkbEvents.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |