From 1442d4e6881e06c9a43c985e6b890cfe77e13adf Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Sun, 16 Dec 2018 13:27:45 +0000 Subject: [PATCH] Update for swaywm/wlroots#1377 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Werror is eͫ̐ͭ҉vi͆ͦ̏ͦlͥ̀͒̊͂͛ --- sway/input/seat.c | 4 ++++ sway/ipc-json.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/sway/input/seat.c b/sway/input/seat.c index f4098eb0b..776d57668 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -392,6 +392,7 @@ static void seat_update_capabilities(struct sway_seat *seat) { caps |= WL_SEAT_CAPABILITY_POINTER; break; case WLR_INPUT_DEVICE_TABLET_PAD: + case WLR_INPUT_DEVICE_SWITCH: break; } } @@ -513,6 +514,9 @@ void seat_configure_device(struct sway_seat *seat, case WLR_INPUT_DEVICE_TABLET_PAD: wlr_log(WLR_DEBUG, "TODO: configure tablet pad"); break; + case WLR_INPUT_DEVICE_SWITCH: + wlr_log(WLR_DEBUG, "TODO: configure switch device"); + break; } } diff --git a/sway/ipc-json.c b/sway/ipc-json.c index fc6313739..0c94fb630 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -93,6 +93,8 @@ static const char *ipc_json_device_type_description(struct sway_input_device *de return "tablet_tool"; case WLR_INPUT_DEVICE_TABLET_PAD: return "tablet_pad"; + case WLR_INPUT_DEVICE_SWITCH: + return "switch"; } return "unknown"; }