aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-02-28 11:57:35 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-02 18:18:05 +0000
commitd60cdad3ea1fed18bbda542b42d3fd7283c88909 (patch)
treef8da507ced35028ce12eea1e64a4d8a47a9087f5 /backend/libinput/backend.c
parent5eefda1ffe16bdacd3445259937cfed119409e22 (diff)
backend/libinput: rework pointer interface
The wlr_libinput_input_device now owns its wlr_pointer, instead of creating a new wlr_libinput_input_device for it
Diffstat (limited to 'backend/libinput/backend.c')
-rw-r--r--backend/libinput/backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index bdc36591..e22c4bfa 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -243,6 +243,9 @@ struct libinput_device *wlr_libinput_get_device_handle(
case WLR_INPUT_DEVICE_KEYBOARD:
dev = device_from_keyboard(wlr_dev->keyboard);
break;
+ case WLR_INPUT_DEVICE_POINTER:
+ dev = device_from_pointer(wlr_dev->pointer);
+ break;
default:
dev = (struct wlr_libinput_input_device *)wlr_dev;
break;