mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-27 19:18:29 +00:00
key: use os bell-ringing function
Use the OS bell-ringing function to ding the bell.
This commit is contained in:
committed by
Daniel Stone
parent
036b457c1b
commit
ef01c2ef65
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user