mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-18 06:59:53 -05:00
opt: remove useless keyboard code
This commit is contained in:
parent
e5705751cc
commit
134242196e
2 changed files with 25 additions and 50 deletions
|
|
@ -2818,10 +2818,13 @@ void reapply_border(void) {
|
|||
}
|
||||
|
||||
void reapply_keyboard(void) {
|
||||
Keyboard *kb;
|
||||
wl_list_for_each(kb, &keyboards, link) {
|
||||
wlr_keyboard_set_repeat_info(kb->wlr_keyboard, repeat_rate,
|
||||
repeat_delay);
|
||||
InputDevice *id;
|
||||
wl_list_for_each(id, &inputdevices, link) {
|
||||
if (id->wlr_device->type != WLR_INPUT_DEVICE_KEYBOARD) {
|
||||
continue;
|
||||
}
|
||||
wlr_keyboard_set_repeat_info((struct wlr_keyboard *)id->device_data,
|
||||
repeat_rate, repeat_delay);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue