key: use os bell-ringing function

Use the OS bell-ringing function to ding the bell.
This commit is contained in:
Daniel Stone
2006-11-02 03:41:48 +02:00
committed by Daniel Stone
parent 036b457c1b
commit ef01c2ef65

View File

@@ -238,13 +238,11 @@ static KeySym map[] = {
* So use the system bell for now.
*/
static void
EvdevKbdBell (int percent, DeviceIntPtr device, pointer ctrl, int unused)
EvdevKbdBell (int percent, DeviceIntPtr device, pointer arg, int unused)
{
/* OS keyboard layer has been removed. */
#if 0
xf86SoundKbdBell(percent, ((KeybdCtrl*) ctrl)->bell_pitch,
((KeybdCtrl*) ctrl)->bell_duration);
#endif
KeybdCtrl *ctrl = arg;
xf86OSRingBell(percent, ctrl->bell_pitch, ctrl->bell_duration);
}
static void