backend/wayland: drop wlr_switch support

master
Simon Zeni 3 years ago committed by Kirill Primak
parent be8527bd36
commit e723dd928b

@ -11,7 +11,6 @@
#include <wlr/interfaces/wlr_keyboard.h> #include <wlr/interfaces/wlr_keyboard.h>
#include <wlr/interfaces/wlr_output.h> #include <wlr/interfaces/wlr_output.h>
#include <wlr/interfaces/wlr_switch.h>
#include <wlr/interfaces/wlr_touch.h> #include <wlr/interfaces/wlr_touch.h>
#include <wlr/interfaces/wlr_tablet_tool.h> #include <wlr/interfaces/wlr_tablet_tool.h>
#include <wlr/interfaces/wlr_tablet_pad.h> #include <wlr/interfaces/wlr_tablet_pad.h>
@ -311,9 +310,10 @@ struct wlr_wl_input_device *create_wl_input_device(
case WLR_INPUT_DEVICE_TABLET_PAD: case WLR_INPUT_DEVICE_TABLET_PAD:
type_name = "tablet-pad"; type_name = "tablet-pad";
break; break;
case WLR_INPUT_DEVICE_SWITCH: default:
type_name = "switch"; wlr_log(WLR_ERROR, "device not handled");
break; free(dev);
return NULL;
} }
size_t name_size = 8 + strlen(type_name) + strlen(seat->name) + 1; 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: case WLR_INPUT_DEVICE_POINTER:
wlr_log(WLR_ERROR, "wlr_wl_input_device has no pointer"); wlr_log(WLR_ERROR, "wlr_wl_input_device has no pointer");
break; break;
case WLR_INPUT_DEVICE_SWITCH:
wlr_switch_finish(wlr_dev->switch_device);
break;
case WLR_INPUT_DEVICE_TABLET_PAD: case WLR_INPUT_DEVICE_TABLET_PAD:
wlr_tablet_pad_finish(wlr_dev->tablet_pad); wlr_tablet_pad_finish(wlr_dev->tablet_pad);
free(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); wlr_touch_finish(wlr_dev->touch);
free(wlr_dev->touch); free(wlr_dev->touch);
break; break;
default:
break;
} }
} }
wl_list_remove(&dev->link); wl_list_remove(&dev->link);

Loading…
Cancel
Save