mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-22 08:56:28 -05:00
rootston: refactor keyboard
This commit is contained in:
parent
447c561d15
commit
9bd0f47efd
3 changed files with 32 additions and 17 deletions
|
|
@ -36,7 +36,7 @@ static void input_add_notify(struct wl_listener *listener, void *data) {
|
|||
device->vendor, device->product, device_type(device->type));
|
||||
switch (device->type) {
|
||||
case WLR_INPUT_DEVICE_KEYBOARD:
|
||||
keyboard_add(device, input);
|
||||
roots_keyboard_create(device, input);
|
||||
break;
|
||||
case WLR_INPUT_DEVICE_POINTER:
|
||||
pointer_add(device, input);
|
||||
|
|
@ -57,7 +57,7 @@ static void input_remove_notify(struct wl_listener *listener, void *data) {
|
|||
struct roots_input *input = wl_container_of(listener, input, input_remove);
|
||||
switch (device->type) {
|
||||
case WLR_INPUT_DEVICE_KEYBOARD:
|
||||
keyboard_remove(device, input);
|
||||
roots_keyboard_destroy(device, input);
|
||||
break;
|
||||
case WLR_INPUT_DEVICE_POINTER:
|
||||
pointer_remove(device, input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue