seat: update keymap/repeat info on keymap events from keebs
fixes #6114
This commit is contained in:
parent
0cb8fbe18e
commit
23cd4c7998
3 changed files with 12 additions and 3 deletions
|
|
@ -86,10 +86,15 @@ void CSeatManager::setKeyboard(SP<IKeyboard> KEEB) {
|
|||
keyboard->active = false;
|
||||
keyboard = KEEB;
|
||||
|
||||
if (KEEB) {
|
||||
if (KEEB)
|
||||
KEEB->active = true;
|
||||
PROTO::seat->updateRepeatInfo(KEEB->wlr()->repeat_info.rate, KEEB->wlr()->repeat_info.delay);
|
||||
}
|
||||
|
||||
updateActiveKeyboardData();
|
||||
}
|
||||
|
||||
void CSeatManager::updateActiveKeyboardData() {
|
||||
if (keyboard)
|
||||
PROTO::seat->updateRepeatInfo(keyboard->wlr()->repeat_info.rate, keyboard->wlr()->repeat_info.delay);
|
||||
PROTO::seat->updateKeymap();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue