From ffc4b0fdeeacd89b2260d405e37367770ca1bf05 Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Sat, 13 Jan 2024 10:03:25 +0100 Subject: [PATCH] seat: remove not needed device type test The device type is already validated in the calling function. --- src/seat.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/seat.c b/src/seat.c index 8a747002..1a95c721 100644 --- a/src/seat.c +++ b/src/seat.c @@ -279,11 +279,9 @@ new_touch(struct seat *seat, struct wlr_input_device *dev) input->wlr_input_device = dev; configure_libinput(dev); wlr_cursor_attach_input_device(seat->cursor, dev); - /* In support of running with WLR_WL_OUTPUTS set to >=2 */ - if (dev->type == WLR_INPUT_DEVICE_TOUCH) { - map_touch_to_output(seat, dev); - } + map_touch_to_output(seat, dev); + return input; }