Xnest: replace XChangeKeyboardControl() by xcb_change_keyboard_control()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
1ecba263ea
commit
e71cf9c53a
|
@ -62,21 +62,20 @@ xnestChangeKeyboardControl(DeviceIntPtr pDev, KeybdCtrl * ctrl)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
unsigned long value_mask;
|
unsigned long value_mask;
|
||||||
XKeyboardControl values;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
value_mask = KBKeyClickPercent |
|
value_mask = KBKeyClickPercent |
|
||||||
KBBellPercent | KBBellPitch | KBBellDuration | KBAutoRepeatMode;
|
KBBellPercent | KBBellPitch | KBBellDuration | KBAutoRepeatMode;
|
||||||
|
|
||||||
values.key_click_percent = ctrl->click;
|
xcb_params_keyboard_t values = {
|
||||||
values.bell_percent = ctrl->bell;
|
.key_click_percent = ctrl->click,
|
||||||
values.bell_pitch = ctrl->bell_pitch;
|
.bell_percent = ctrl->bell,
|
||||||
values.bell_duration = ctrl->bell_duration;
|
.bell_pitch = ctrl->bell_pitch,
|
||||||
values.auto_repeat_mode = ctrl->autoRepeat ?
|
.bell_duration = ctrl->bell_duration,
|
||||||
AutoRepeatModeOn : AutoRepeatModeOff;
|
.auto_repeat_mode = ctrl->autoRepeat ? AutoRepeatModeOn : AutoRepeatModeOff,
|
||||||
|
};
|
||||||
XChangeKeyboardControl(xnestDisplay, value_mask, &values);
|
|
||||||
|
|
||||||
|
xcb_aux_change_keyboard_control(xnestUpstreamInfo.conn, value_mask, &values);
|
||||||
/*
|
/*
|
||||||
value_mask = KBKey | KBAutoRepeatMode;
|
value_mask = KBKey | KBAutoRepeatMode;
|
||||||
At this point, we need to walk through the vector and compare it
|
At this point, we need to walk through the vector and compare it
|
||||||
|
@ -88,7 +87,8 @@ xnestChangeKeyboardControl(DeviceIntPtr pDev, KeybdCtrl * ctrl)
|
||||||
values.led = i;
|
values.led = i;
|
||||||
values.led_mode =
|
values.led_mode =
|
||||||
(ctrl->leds & (1 << (i - 1))) ? LedModeOn : LedModeOff;
|
(ctrl->leds & (1 << (i - 1))) ? LedModeOn : LedModeOff;
|
||||||
XChangeKeyboardControl(xnestDisplay, value_mask, &values);
|
|
||||||
|
xcb_aux_change_keyboard_control(xnestUpstreamInfo.conn, value_mask, &values);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue