mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
opt: remove keyboard from group when it is destroyed
This commit is contained in:
parent
b9c6a2c196
commit
e7d8cb7bfa
1 changed files with 6 additions and 0 deletions
|
|
@ -3191,6 +3191,12 @@ void destroyinputdevice(struct wl_listener *listener, void *data) {
|
|||
free(sw);
|
||||
break;
|
||||
}
|
||||
case WLR_INPUT_DEVICE_KEYBOARD: {
|
||||
struct wlr_keyboard *keyboard =
|
||||
(struct wlr_keyboard *)input_dev->device_data;
|
||||
wlr_keyboard_group_remove_keyboard(kb_group->wlr_group, keyboard);
|
||||
break;
|
||||
}
|
||||
// 可以添加其他设备类型的清理代码
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue