mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-26 10:44:30 +00:00
Nuke the keyboard bell code.
It did nothing, and the core won't invoke it anymore anyway.
This commit is contained in:
10
src/evdev.c
10
src/evdev.c
@@ -404,12 +404,6 @@ static KeySym map[] = {
|
||||
/* 0x7f */ XK_Multi_key, NoSymbol,
|
||||
};
|
||||
|
||||
static void
|
||||
EvdevKbdBell(int percent, DeviceIntPtr dev, pointer ctrl, int unused)
|
||||
{
|
||||
/* hat */
|
||||
}
|
||||
|
||||
static void
|
||||
EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl)
|
||||
{
|
||||
@@ -488,7 +482,7 @@ EvdevAddKeyClass(DeviceIntPtr device)
|
||||
{
|
||||
xf86Msg(X_CONFIG, "XKB: disabled\n");
|
||||
if (!InitKeyboardDeviceStruct((DevicePtr)device, &keySyms, modMap,
|
||||
EvdevKbdBell, EvdevKbdCtrl))
|
||||
NULL, EvdevKbdCtrl))
|
||||
return !Success;
|
||||
}
|
||||
#ifdef XKB
|
||||
@@ -507,7 +501,7 @@ EvdevAddKeyClass(DeviceIntPtr device)
|
||||
pEvdev->xkb_layout, pEvdev->xkb_variant,
|
||||
pEvdev->xkb_options);
|
||||
if (!XkbInitKeyboardDeviceStruct(device, &pEvdev->xkbnames,
|
||||
&keySyms, modMap, EvdevKbdBell,
|
||||
&keySyms, modMap, NULL,
|
||||
EvdevKbdCtrl))
|
||||
return !Success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user