mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-19 19:20:56 +01:00
Revert "XQuartz: Explicitly pass a bellProc to make XBell() work again."
I'm not quite sure why this was necessary, but DDXRingBell is being called
from CoreKeyboardBell, so we don't need a separate bellProc which would
result in multiple rings.
This reverts commit 7e7e7935ee.
Conflicts:
hw/xquartz/quartzKeyboard.c
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
31292a7c77
commit
63ef872068
1 changed files with 1 additions and 7 deletions
|
|
@ -184,12 +184,6 @@ static void DarwinChangeKeyboardControl(DeviceIntPtr device, KeybdCtrl *ctrl) {
|
|||
// keyclick, bell volume / pitch, autorepead, LED's
|
||||
}
|
||||
|
||||
static void DarwinKeyboardBell(int volume, DeviceIntPtr pDev, pointer arg, int something) {
|
||||
KeybdCtrl *ctrl = arg;
|
||||
|
||||
DDXRingBell(volume, ctrl->bell_pitch, ctrl->bell_duration);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Utility functions to help parse Darwin keymap
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
@ -301,7 +295,7 @@ void DarwinKeyboardInit(DeviceIntPtr pDev) {
|
|||
// for a kIOHIDParamConnectType connection.
|
||||
assert(darwinParamConnect = NXOpenEventStatus());
|
||||
|
||||
InitKeyboardDeviceStruct(pDev, NULL, DarwinKeyboardBell, DarwinChangeKeyboardControl);
|
||||
InitKeyboardDeviceStruct(pDev, NULL, NULL, DarwinChangeKeyboardControl);
|
||||
|
||||
DarwinKeyboardReloadHandler();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue