aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
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 e22c4bfa..92b5effa 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -246,6 +246,9 @@ struct libinput_device *wlr_libinput_get_device_handle(
case WLR_INPUT_DEVICE_POINTER:
dev = device_from_pointer(wlr_dev->pointer);
break;
+ case WLR_INPUT_DEVICE_SWITCH:
+ dev = device_from_switch(wlr_dev->switch_device);
+ break;
default:
dev = (struct wlr_libinput_input_device *)wlr_dev;
break;