From e723dd928bb254c3521e1b8e866bad7971587094 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Mon, 7 Mar 2022 11:11:49 -0500 Subject: backend/wayland: drop wlr_switch support --- backend/wayland/seat.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c index c8ad91ee..f6665a58 100644 --- a/backend/wayland/seat.c +++ b/backend/wayland/seat.c @@ -11,7 +11,6 @@ #include #include -#include #include #include #include @@ -311,9 +310,10 @@ struct wlr_wl_input_device *create_wl_input_device( case WLR_INPUT_DEVICE_TABLET_PAD: type_name = "tablet-pad"; break; - case WLR_INPUT_DEVICE_SWITCH: - type_name = "switch"; - break; + default: + wlr_log(WLR_ERROR, "device not handled"); + free(dev); + return NULL; } size_t name_size = 8 + strlen(type_name) + strlen(seat->name) + 1; @@ -341,9 +341,6 @@ void destroy_wl_input_device(struct wlr_wl_input_device *dev) { case WLR_INPUT_DEVICE_POINTER: wlr_log(WLR_ERROR, "wlr_wl_input_device has no pointer"); break; - case WLR_INPUT_DEVICE_SWITCH: - wlr_switch_finish(wlr_dev->switch_device); - break; case WLR_INPUT_DEVICE_TABLET_PAD: wlr_tablet_pad_finish(wlr_dev->tablet_pad); free(wlr_dev->tablet_pad); @@ -356,6 +353,8 @@ void destroy_wl_input_device(struct wlr_wl_input_device *dev) { wlr_touch_finish(wlr_dev->touch); free(wlr_dev->touch); break; + default: + break; } } wl_list_remove(&dev->link); -- cgit v1.2.3